Closed DopamineDriven closed 4 years ago
I believe this was fixed in 9.5.4-canary.4: https://github.com/vercel/next.js/pull/16834
@laugharn you are correct. I just ran yarn add next@9.5.4
and that resolved the issue as well. When running yarn add next
without targeting a version explicitly it installs next 9.5.3. Thanks for the prompt response!
Fixed in #16834 indeed.
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Bug report
Describe the bug
Next version 9.5.3 breaks when used with yarn. I remade a repo using npm instead and it was smooth sailing.
A clear and concise description of what the bug is. "Invalid page config export found. Expected object but got import in file pages\ _app.tsx."
To Reproduce
Create a next project using yarn. In _app.tsx, use the following code
Steps to reproduce the behavior, please provide code snippets or a repository:
yarn dev
. It will throw an event/next/dist/pages/_error
Cannot find module ...build-manifest.json
Expected behavior
Expected _app.tsx to not unforeseeably error out.
Screenshots
If applicable, add screenshots to help explain your problem. Launching with next version 9.5.3 Rolling the version back to next version 9.5.2 Next launches successfully on
yarn dev
with next 9.5.2System information
Additional context
Add any other context about the problem here. Rollback your next version to 9.5.2 to resolve the error if using typescript and yarn with next until the breaking changes are resolved by the vercel/next team.