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

Could not resolve "esm-env" #43

Open
myftija opened this issue Aug 11, 2024 · 0 comments
Open

Could not resolve "esm-env" #43

myftija opened this issue Aug 11, 2024 · 0 comments

Comments

@myftija
Copy link

myftija commented Aug 11, 2024

Hi,
I am getting an error in the build about Vite not being able to resolve esm-env, which is used by sveltekit-flash-message.

Here is the error message:

✘ [ERROR] Could not resolve "esm-env"
    ../../node_modules/.store/sveltekit-flash-message-virtual-b0a0b5868a/node_modules/sveltekit-flash-message/dist/client.js:3:35:
      3 │ import { BROWSER as browser } from 'esm-env';
        ╵                                    ~~~~~~~~~
You can mark the path "esm-env" as external to exclude it from the bundle, which will remove this error and leave the unresolved path in the bundle.

Vite version: 5.4.0
sveltekit-flash-message version: 2.4.4
SvelteKit version: 2.5.10

I wasn't able to find a workaround. Any clues what could be the issue?

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