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
SSR build not work #72
Comments
can you make a repro or just paste the code snippet that using buffer. |
i had this same problem when outputting as CommonJS |
the debugger seemed to suggest this issue is in Vite but I’m not sure either |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I build my app without an error, but when run it with node command, it shows:
TypeError: Cannot read properties of undefined (reading 'MAX_STRING_LENGTH')
Node.js v18.13.0
fastify v4.11.0
vite.config
Here are all the places in the compiled index.js where the var buffer$1 is used:
buffer$1 contains:
I really don't have an idea what causes that problem: node, a module, vite, vite-plugin-node, did you have any suggestion?
The text was updated successfully, but these errors were encountered: