async-script-loader icon indicating copy to clipboard operation
async-script-loader copied to clipboard

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

Open svenjacobs opened this issue 3 years ago • 1 comments

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.

svenjacobs avatar Feb 09 '22 15:02 svenjacobs

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

chrisfromredfin avatar Aug 19 '22 13:08 chrisfromredfin