viteBundler with nodePolyfills #4018
codercatdev
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have some oauth modules I am trying to use that are still referencing nodejs, so I am trying to polyfill all of the built-in node modules using
vite-plugin-node-polyfills
.Causes
Cannot read properties of null (reading 'stat')
because it is removed in the defaultfs
config.If i update to the below and leave out the bundler
Causes
The requested module '/admin/@fs/home/node/app/node_modules/react/index.js?v=591ac04c' does not provide an export named 'default' (at entry.tsx:4:8)
Any suggestions??
Repo: https://github.com/alex-fusionauth/fusionauth-payload-cms-example/blob/fix/bundler-issues/payload-cms/src/payload.config.ts
Beta Was this translation helpful? Give feedback.
All reactions