What this error means
The build script type-checks the code (tsc) and found errors. The bundler alone might build, but the script fails first.
Why it happens
The build script runs the TypeScript compiler before bundling. tsc found type errors, so the script exits even if the bundler could have emitted JavaScript.
The message tools print
src/pages/Index.tsx(12,7): error TS2322: Type 'string' is not assignable to type 'number'.How to fix it
- Fix the errors listed — each line gives the file, line and column.
- Or paste this log into your AI builder and ask it to fix them.
Check a log that shows this
Paste the failing step into the build error explainer. It matches this message, and any others in the same log, in your browser. Nothing is uploaded.
