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

Vite bundler: async-script-loader doesn't appear to be written in CJS... #10

Open
svenjacobs opened this issue Feb 9, 2022 · 1 comment

Comments

@svenjacobs
Copy link

Using your library in a SvelteKit project with Vite, I get the following warning:

@beyonk/async-script-loader doesn't appear to be written in CJS, but also doesn't appear to be a valid ES module (i.e. it doesn't have "type": "module" or an .mjs extension for the entry point). Please contact the package author to fix.
@chrisfromredfin
Copy link

My answer for this was to include it in ssr.noExternal in my svelte.config.js; but currently having trouble porting that to vite.config.js...

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

2 participants