Getting Vite error on when importing `compile`
See original GitHub issueWhen including import { compile } from 'mdsvex';
in a route I immediately get the following error:
SyntaxError: The requested module '/@id/__vite-browser-external:path' does not provide an export named 'join'
This happens without using compile
anywhere and it immediately fixed when removing the import
.
Running Svelte Kit 1.0.0-next.103 with standard (for Kit so far) config.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:4
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Troubleshooting - Vite
Error : Cannot find module 'C:\foo\bar&baz\vite\bin\vite.js' #. The path to your project folder may ... You may be importing a file with a...
Read more >build fails with import statement in 3.1.6 · Issue #10365 - GitHub
npm run build fails to complete with v3.1.6 giving me the error "[plugin externalize-deps] Failed to resolve entry for package "fs".
Read more >Console error on import of non-existent file in vite
I am migrating from webpack using Vue2.7 and @vitejs/plugin-vue2. So there was one problem. await import(`${path} ...
Read more >[vite:build-import-analysis] parse error - You.com | The AI ...
I've updated my project from Vite 2.x to Vite 3.0.2 and suddenly i got this error: [plugin:vite:import-analysis] Failed to parse source for import...
Read more >Laravel Vite build error: 'resolve' is not exported by __vite ...
For this, when I run npm run build , I get the following error. Copy Code > 'resolve' is not exported by __vite-browser-external,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I got around this by using:
import * as mdsvex from 'mdsvex/dist/browser-umd';
Same issue here. Error
import path__default, { join } from 'path';
. Svelte v 3.46.4. I needcompile
because there are no markdown files in my repo, I fetch markdown via api Unfortunately MDSeveX is a show stopper on my repo. Hope it gets solved soon 😃