Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during build with sveltekit2 #565

Open
Tracked by #590
john-bv opened this issue Feb 12, 2024 · 0 comments
Open
Tracked by #590

Error during build with sveltekit2 #565

john-bv opened this issue Feb 12, 2024 · 0 comments
Labels
assigned Whether or not this bug has been assigned some to some other issues as a subtask or pre-req environment An issue with the environment
Milestone

Comments

@john-bv
Copy link

john-bv commented Feb 12, 2024

error during build:
RollupError: "join" is not exported by "__vite-browser-external:path", imported by "node_modules/.pnpm/mdsvex@0.11.0_svelte@4.1.2/node_modules/mdsvex/dist/main.es.js".

Error when building using sveltekit 2

Works in dev, but errors when building with vite:

✓ 3376 modules transformed.
✓ built in 31.55s
"join" is not exported by "__vite-browser-external:path", imported by "node_modules/.pnpm/mdsvex@0.11.0_svelte@4.1.2/node_modules/mdsvex/dist/main.es.js".
file:/node_modules/.pnpm/mdsvex@0.11.0_svelte@4.1.2/node_modules/mdsvex/dist/main.es.js:2:24
1: import * as path from 'path';
2: import path__default, { join } from 'path';
                           ^
3: import fs from 'fs';
4: import { parse as parse$8 } from 'svelte/compiler';
[vite-plugin-sveltekit-compile] "join" is not exported by "__vite-browser-external:path", imported by "node_modules/.pnpm/mdsvex@0.11.0_svelte@4.1.2/node_modules/mdsvex/dist/main.es.js".
file: /node_modules/.pnpm/mdsvex@0.11.0_svelte@4.1.2/node_modules/mdsvex/dist/main.es.js:2:24
@pngwn pngwn modified the milestones: 1.0, 1.0 docs + integrations Feb 23, 2024
@pngwn pngwn added environment An issue with the environment assigned Whether or not this bug has been assigned some to some other issues as a subtask or pre-req labels Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assigned Whether or not this bug has been assigned some to some other issues as a subtask or pre-req environment An issue with the environment
Projects
None yet
Development

No branches or pull requests

2 participants