嗨我得到模块丢失错误
错误:无法找到模块'next/dist/server/next-server'
https://github.com/aws-amplify/amplify-hosting/issues/3319
构建正在成功生成,请让我知道如何解决它。
嗨我得到模块丢失错误
错误:无法找到模块'next/dist/server/next-server'
https://github.com/aws-amplify/amplify-hosting/issues/3319
构建正在成功生成,请让我知道如何解决它。
1条答案
按热度按时间izj3ouym1#
尝试在amplify中更改构建设置。如果是构建设置,则应该只在preBuild中看到
yarn install
。尝试将该代码替换为rm -rf node_modules -rf yarn.lock && yarn install --frozen-lockfile
。