我正在使用 next js 版本 13.5.5 和 next-auth 版本 4.23 创建一个应用程序。现在一切正常。身份验证和授权在本地环境中功能齐全。当我运行命令来创建生产版本时,它给了我这个错误。
Failed to compile.
./node_modules/@babel/runtime/regenerator/index.js
Dynamic Code Evaluation (e. g. 'eval', 'new Function', 'WebAssembly.compile') not allowed in Edge Runtime
Import trace for requested module:
./node_modules/@babel/runtime/regenerator/index.js
./node_modules/next-auth/react/index.js
Build failed because of webpack errors
Creating an optimized production build
“我也遇到了同样的问题。解决了吗?”