Vite plugin does not compile the commonjs module
Hey Team, I am developing an application using Yusuke's template
https://github.com/yusukebe/cloudflare-d1-drizzle-honox-starter
If you add any library which also comes with commonjs/nodejs module, it fails to load them . Everything works fine with
npx wrangler pages dev
though. Any idea, agains which repo, should I post this issue on GithubGitHub
GitHub - yusukebe/cloudflare-d1-drizzle-honox-starter: cloudflare-d...
cloudflare-d1-drizzle-honox-starter. Contribute to yusukebe/cloudflare-d1-drizzle-honox-starter development by creating an account on GitHub.
1 Reply
the library I am trying to use is
jspdf
module is not defined
at eval (/Users/sutikshandubey/invoice001/web-360/node_modules/@babel/runtime/helpers/typeof.js:12:1)
at instantiateModule (file:///Users/sutikshandubey/invoice001/web-360/node_modules/vite/dist/node/chunks/dep-Cyk9bIUq.js:52961:11
Click outside, press Esc key, or fix the code to dismiss.
You can also disable this overlay by setting server.hmr.overlay to false in vite.config.ts.