question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Getting Vite error on when importing `compile`

See original GitHub issue

When 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:open
  • Created 2 years ago
  • Reactions:4
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

7reactions
pixelscriptcommented, Jul 15, 2021

I got around this by using: import * as mdsvex from 'mdsvex/dist/browser-umd';

4reactions
git-nocommented, Mar 30, 2022

Same issue here. Error import path__default, { join } from 'path';. Svelte v 3.46.4. I need compile 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 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found