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
I have removed any sensitive information from my code snippets and submission.
App Id
d3hnphv5vamg3g
AWS Region
ap-northeast-2
Amplify Hosting feature
Deployments
Question
after i implemented PnP of Yarn Berry in project, local build & CI is fine.
but, During the deployment process through Amplify, i encountered the following error:
"!!! CustomerError: The 'node_modules' folder in the standalone directory (/codebuild/output/src447661411/src/~~~/.next/standalone) is missing the 'next' dependency. This is required at runtime to run your application. If you are using a monorepo framework, you may need to do additional setup to ensure the necessary runtime dependencies are included in the standalone output directory. Read more: https://github.com/aws-amplify/amplify-hosting/blob/main/FAQ.md#using-a-monorepo-framework".text
Since the build and deployment process was successful before introducing PnP, it is suspected that the error occurred due to the introduction of PnP. The disappearance of the node_modules folder after using PnP seems to be the cause of the issue, and i'm not sure how to resolve it.
The text was updated successfully, but these errors were encountered:
Just to clarify, Next.js project that i want to deploy is not a monorepo and i'm not using monorepo framework like Nx.
and, my Next.js version is 13.2.1.
Before opening, please confirm:
App Id
d3hnphv5vamg3g
AWS Region
ap-northeast-2
Amplify Hosting feature
Deployments
Question
after i implemented PnP of Yarn Berry in project, local build & CI is fine.
but, During the deployment process through Amplify, i encountered the following error:
Since the build and deployment process was successful before introducing PnP, it is suspected that the error occurred due to the introduction of PnP. The disappearance of the node_modules folder after using PnP seems to be the cause of the issue, and i'm not sure how to resolve it.
The text was updated successfully, but these errors were encountered: