You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can't use class-transformer for input validation in nextjs edge runtime - Its fails on compilation
Expected behavior
Normal usage of the library
Actual behavior
when running npm run build
./node_modules/class-transformer/esm5/TransformOperationExecutor.js
A Node.js API is used (Buffer at line: 117) which is not supported in the Edge Runtime.
Learn more: https://nextjs.org/docs/api-reference/edge-runtime
The text was updated successfully, but these errors were encountered:
unfortunately, this is a a bit harder to reproduce and because it does not seem to be a problem for others, it seems to be a low prio problem.
I think this is the only line that uses the Buffer.
You might be able to somehow mock that Buffer, or bypass the error for this, only if you do not intend to use Buffer (which I assume you wont).
Description
Can't use class-transformer for input validation in nextjs edge runtime - Its fails on compilation
Expected behavior
Normal usage of the library
Actual behavior
when running
npm run build
./node_modules/class-transformer/esm5/TransformOperationExecutor.js
A Node.js API is used (Buffer at line: 117) which is not supported in the Edge Runtime.
Learn more: https://nextjs.org/docs/api-reference/edge-runtime
The text was updated successfully, but these errors were encountered: