PatrickJS-starter: Uncaught TypeError: t.match is not a function , in production mode only
- I’m submitting a … [*] bug report [ ] feature request [ ] question about the decisions made in the repository
- What is the current behavior? my app works correctly in development server, but when i try to run it in production with
npm run server:prod
it generates errors in the web console, here is the full error:
https://gist.github.com/eslammostafa/14340268bc17040c049d8f1cc46da459
and here is my app.module.ts:
https://gist.github.com/eslammostafa/f33363431880de551556a11786ba9f46
environment:
- Angular version: 2.0.0-rc.6
- Browser: Chrome
- Operating System : tried on mac os x and on ubuntu 16.04
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 1
- Comments: 15
I removed all module.id in my components and it works
Why is this closed? The bug still exists!
Chaning a file in node_modules is more like a quick fix than a real fix.
@norhamizan Thank you very much . Removing all module.id’s fixed the issue!. I used a theme I bought and it seems they had those left somewhere so i removed it and it worked!.