WebPack errors while trying to build?
Unanswered
Sloth bear posted this in #help-forum
Sloth bearOP
Im trying to push our app to a staging environment but I keep getting these webpack errors with no further explanation:
I've tried deleting node modules, deleting .next folder, deleting package-lock.json but cannot get around these errors. It runs fine in dev.
✘ josh-pensar@Joshs-MBP ~/repositories/console postgres ± npm run build
> console@0.0.0 build
> next build
▲ Next.js 14.2.18
- Environments: .env
Creating an optimized production build ...
Failed to compile.
./app/[workspace]/projects/[id]/issues/[issueId]/page.tsx + 18 modules
Unexpected end of JSON input
./app/[workspace]/reports/reportsClient.tsx + 218 modules
Unexpected end of JSON input
./app/[workspace]/settings/billingSection.tsx + 5 modules
Unexpected end of JSON input
./node_modules/react-remove-scroll/dist/es2015/Combination.js + 21 modules
Unexpected end of JSON input
./node_modules/@radix-ui/react-popper/dist/index.mjs + 7 modules
Unexpected end of JSON inputI've tried deleting node modules, deleting .next folder, deleting package-lock.json but cannot get around these errors. It runs fine in dev.