Production builds are failing with the following error.
multi ./src/index.js
Module not found: Error: Can't resolve 'C:\dev-temp\preact-example\ts-test\src\index.js' in 'C:\dev-temp\preact-example\ts-test\src'
@ multi ./src/index.js
dev build's are working fine, however, using preact watch.
Reproduction steps:
- Run
preact create new-app
- Run
cd new-app
- Run
npm i preact-cli-plugin-typescript --save-dev
- Rename all js files to tsx
- Fix TS compilation errors (update style imports to use require, add missing types, etc.)
- Run
npm run build
Build fails, whereas npm start succeeds and the app runs.
Production builds are failing with the following error.
dev build's are working fine, however, using
preact watch.Reproduction steps:
preact create new-appcd new-appnpm i preact-cli-plugin-typescript --save-devnpm run buildBuild fails, whereas
npm startsucceeds and the app runs.