To showcase working example in plain javascript do the following:
- In
index.html
uncomment script./formatImport.js
alone - Run
npm run start
- Go to localhost:8080
- Dev server works perfectly
- Run
npm run build
- Run
npm run start:prod
- Go to localhost:8080
- Prod server works perfectly
To reproduce the issue do the following:
- In
index.html
uncomment script./formatImport.ts
alone - Run
npm run start
- Go to localhost:8080
- Dev server throws error runtime
- Run
npm run build
- Build fails with error
- In
index.html
uncomment script./formatImportDate.ts
alone - Run
npm run start
- Go to localhost:8080
- Dev server throws error runtime
- Run
npm run build
- Run
npm run start:prod
- Go to localhost:8080
- Prod server works perfectly