-
Notifications
You must be signed in to change notification settings - Fork 1.4k
SyntaxError: Unexpected token < at eval (<anonymous>) #1996
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
That's incorrect import, not an issue in Angular seed. |
Is it the third party library you are talking about? |
@arun-awnics you can take a look at the network tab and see which file is not being loaded properly. What happens is:
|
I am doubting that's not the problem I am facing. I did what you said in the network tab. I see that I have included all the imports in I get this error while compiling: What does that mean? Can you please tell me what it is? @mgechev |
@arun-awnics With seed update some changes got introduced here. |
Hey @maxmarkus Even after removing or commenting the first line, I still get the same error. |
I'm having the same problem, did you find a solution @arun-awnics? |
No @mathijshoogland I tried everything said above and it still doesn't work. Were you able to find the solution? |
Also running into this. Get the following error at run-time: Started working again on my Angular 2 project after about 4 months. The project used to work fine at that time. Made no other changes, just updated to the latest Seed, which brought my project from Angular 4.0.0 to 4.2.3. Don't see any errors (missing files) in the Network tab of Dev tools. The project compiles with no errors in Typescript 2.4.1. Tried removing and re-installing Any suggestion on how to debug this? |
I am getting same error..arun, Did you fix this issue? |
@skolli853780 - in my case the problem was due to some third part libraries/packages not getting loaded. I managed to use the debugger (set a break point in code just before the error occurs, then turn on 'break on exception') to identify the library that could not be loaded. For each of the 'unloadable' libraries, I had to add the following code (using
|
@hhubik your suggestion helped me to resolve the unexpected token issue. I had multiple packages breaking so fixed one by one added entries to project.config.ts file . Attaching screenshot if it might help others, please have breakpoint at the file and look for 'address' that indicates you the package. below are 2 such packages
|
I'm submitting a ... (check one with "x")
Current behavior
Expected behavior
Needs to compile and run without error
Minimal reproduction of the problem with instructions
It works with previous version but I get this error when I update my code with the latest version of angular-seed.
Please tell us about your environment:
OS: Windows X
IDE: None
Package manager: npm v.6.9.1
aaaaf75
node --version
= v6.9.1The text was updated successfully, but these errors were encountered: