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
Build fails with error TypeError: /vercel/path0/node_modules/next/dist/build/webpack/loaders/css-loader/src/camelcase.js: e.charCodeAt is not a function #29301
Comments
Hi, after cloning the provided repro from https://github.com/hborrelli1/bp-website and commenting out the contentful data fetching it appears to work fine. I'm gonna close this since the error isn't present, if you are still encountering this feel free to respond with additional info and we can take another look. |
Fwiw, I'm seeing this as well rather randomly when building my project in Vercel, and the only similiarity I see with your project is |
Thanks for the feedback. I ended up removing preval and that fixed the issues. |
@ijjk PS - This error is flaky. Sometimes happens, sometimes, doesn't. So it's not possible for us to make a reproducible repo. This is the full stack trace for this error. See full stack trace
So this file As far as I could research, this seems to be a bug in I am not really familiar with nextjs architecture. Is this |
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. |
What version of Next.js are you using?
v11.1.3-canary.30
What version of Node.js are you using?
v14.17.6
What browser are you using?
Chrome
What operating system are you using?
macOS
How are you deploying your application?
npm run build and build triggered by vercel
Describe the Bug
I am receiving the following error during build:
TypeError: /vercel/path0/node_modules/next/dist/build/webpack/loaders/css-loader/src/camelcase.js: e.charCodeAt is not a function
. After researching the issue I thought it was related to my Tailwindcss integration. I have since removed the Tailwind integration but am still seeing the issue.The issue is present when using the next version
11.1.0
as well asv11.1.3-canary.30
.I've also noticed most of the time this issue is present while trying to use grid CSS properties. However, I am not using grid anywhere within my CSS.
I have tried tweaking the
next.config.js
among other things but cannot seem to get rid of the issue.Expected Behavior
Build to run successfully both locally and in vercel.
To Reproduce
npm run build
The text was updated successfully, but these errors were encountered: