To showcase working example in plain javascript do the following:
- In
index.htmluncomment script./formatImport.jsalone - 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.htmluncomment script./formatImport.tsalone - Run
npm run start - Go to localhost:8080
- Dev server throws error runtime
- Run
npm run build - Build fails with error
- In
index.htmluncomment script./formatImportDate.tsalone - 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