Next 13 出现下一个身份验证生产构建错误

问题描述 投票:0回答:1

我正在使用 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  
typescript next.js13 next-auth
1个回答
0
投票

“我也遇到了同样的问题。解决了吗?”

© www.soinside.com 2019 - 2024. All rights reserved.