-
-
Notifications
You must be signed in to change notification settings - Fork 469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App won't build with yarn build #279
Comments
To update here, it only works with yarn classic v1.22.19 not with yarn v3, even with nodeLinker, it does not calculate to exclude server components and sees them as a usual components. Same thing happens with pnpm v8 too. I think the issue here is yarn.lock file maybe does not supported by yarn v3? |
Hello, i also get this issue and i am using yarn classic v1.22.19 yarn --version yarn build Creating an optimized production build ... ./src/app/[countryCode]/(checkout)/checkout/page.tsx:23:44 21 | }
|
@LXBUGR if you somehow accidentally removed the lock file, this is happens. i think this is mostly happens because of nexjs and typescript verison. |
Having, the same issue, with yarn 1.22: yarn build
Creating an optimized production build ... ./src/modules/checkout/components/submit-button/index.tsx:26:7 24 | type="submit"
|
I am also having this same issue. A fresh download of this project will build correctly but later I will start getting these issues: `
next.config.js {}
Creating an optimized production build ... ./src/modules/checkout/components/submit-button/index.tsx:26:7 24 | type="submit"
|
Same issue with |
Same issue. Removing |
I had the same issue and somehow I find this topic: I updated the package.json resolutions fields, which contains a mismatch version of types/react.
So as you can see resolutions used 17.0.40 and devDependencies "^18.2.42". I updated resolutions to "^18.2.42" as well so it started working. |
I have the same issue and changing the resolutions didn't work. 😮💨 |
Hello, I cloned the repo and installed the dependencies with yarn package. But when I want to build the next app with yarn build, below error appears,
Does anybody bump this kind of build issues before on a clean cloned repo?
I am using
The text was updated successfully, but these errors were encountered: