Description
Found a bug? Please fill out the sections below. 👍
Issue Summary
I got this error while deploying on Heorku:
"
-----> Build
Running build
> [email protected] build
> next build
⚠ No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
Attention: Next.js now collects completely anonymous telemetry regarding usage.
This information is used to shape Next.js' roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://nextjs.org/telemetry
▲ Next.js 15.2.4
Linting and checking validity of types ...
⨯ ESLint must be installed in order to run during builds: npm install --save-dev eslint
Failed to compile.
./internal-ui/vite.config.ts:3:19
Type error: Cannot find module '@vitejs/plugin-react' or its corresponding type declarations.
1 | import { resolve } from 'path';
2 | import { defineConfig } from 'vite';
3 | import react from '@vitejs/plugin-react';
| ^
4 | import viteTsconfigPaths from 'vite-tsconfig-paths';
5 | import typescript from '@rollup/plugin-typescript';
6 |
Next.js build worker exited with code: 1 and signal: null
-----> Build failed
We're sorry this build is failing! You can troubleshoot common issues here:
https://devcenter.heroku.com/articles/troubleshooting-node-deploys
Some possible problems:
- Dangerous semver range (>) in engines.node
https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version
Love,
Heroku
! Push rejected, failed to compile Node.js app.
! Push failed"
Steps to Reproduce
Try to deploy using the 1-Click Heroku Deployment
Any other relevant information. For example, why do you consider this a bug and what did you expect to happen instead?
Technical details
- Browser version: You can use https://www.whatsmybrowser.org/ to find this out.
- Node.js version
- Anything else that you think could be an issue.