Replies: 1 comment 5 replies
-
It works in dev only because The core issue is that the package is using nodejs modules in the browser, which is causing issues |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
Hello! I ran into a build problem in product mode when adding a library @apidevtools/json-schema-ref-parser. I add plugins @esbuild-plugins/node-modules-polyfill and @esbuild-plugins/node-globals-polyfill in vite.config for development mode it's help me, but it's dont work for production mode. I tried add rollup plugin with nodejs rollup-plugin-polyfill-node dependencies for production mode, but it's not help me.
my vite.config.ts and my start project
Error:
Can you help me?
Reproduction
https://github.com/yura007rt/json-ref-parser-bug
System Info
Used Package Manager
npm
Logs
No response
Validations
Beta Was this translation helpful? Give feedback.
All reactions