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

import error on function 'encode' of @jridgewell/sourcemap-codec #85

Open
GonerGenesis opened this issue Jul 9, 2024 · 1 comment
Open

Comments

@GonerGenesis
Copy link

Hi,
I've got a strange client (browser) side issue while trying out @jycouet 'firstly' lib.
The code-red module is complaining about a missing import/export from @jridgewell/sourcemap-codec:

SyntaxError: The requested module '/node_modules/.pnpm/@[email protected]/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js?v=1d7d69f3' does not provide an export named 'encode' (at index.js:3:10)

but it is definitely there:
image

I don't think it's a problem with code-red but with some issue of the pnpm-vite-svelte build process of the lib or how the package install is handled on my site, but I'd like to have a clue about whats going on.
Is there any idea?
Cheers

@GonerGenesis
Copy link
Author

It looks like vite doesn't resolve the packages correctly, or why does the umd version gets imported?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant