'npm start': Unexpected token <, app.js:372 Failed to load app.component.html
See original GitHub issueI’m submitting a …
[ x] bug report
Current behavior
npm start
- giving an error:
Uncaught SyntaxError: Unexpected token <
c:\Projects\src\ngx-charts\node_modules\zone.js\dist\zone.js:1805 GET http://localhost:9999/app.component.html 404 (Not Found)
scheduleTask @ c:\Projects\src\ngx-charts\node_modules\zone.js\dist\zone.js:1805
./node_modules/zone.js/dist/zone.js.ZoneDelegate.scheduleTask @ c:\Projects\src\ngx-charts\node_modules\zone.js\dist\zone.js:255
./node_modules/zone.js/dist/zone.js.Zone.scheduleMacroTask @ c:\Projects\src\ngx-charts\node_modules\zone.js\dist\zone.js:168
(anonymous) @ c:\Projects\src\ngx-charts\node_modules\zone.js\dist\zone.js:1829
send @ VM229:3
./node_modules/@angular/platform-browser-dynamic/src/resource_loader/resource_loader_impl.js.ResourceLoaderImpl.get @ c:\Projects\src\ngx-charts\node_modules\@angular\platform-browser-dynamic\src\resource_loader\resou…:47
./node_modules/@angular/compiler/src/directive_normalizer.js.DirectiveNormalizer._fetch @ c:\Projects\src\ngx-charts\node_modules\@angular\compiler\src\directive_normalizer.js:81
./node_modules/@angular/compiler/src/directive_normalizer.js.DirectiveNormalizer.normalizeTemplateAsync @ c:\Projects\src\ngx-charts\node_modules\@angular\compiler\src\directive_normalizer.js:127
./node_modules/@angular/compiler/src/directive_normalizer.js.DirectiveNormalizer.normalizeTemplate @ c:\Projects\src\ngx-charts\node_modules\@angular\compiler\src\directive_normalizer.js:99
./node_modules/@angular/compiler/src/metadata_resolver.js.CompileMetadataResolver._loadDirectiveMetadata @ c:\Projects\src\ngx-charts\node_modules\@angular\compiler\src\metadata_resolver.js:220
(anonymous) @ c:\Projects\src\ngx-charts\node_modules\@angular\compiler\src\metadata_resolver.js:396
./node_modules/@angular/compiler/src/metadata_resolver.js.CompileMetadataResolver.loadNgModuleDirectiveAndPipeMetadata @ c:\Projects\src\ngx-charts\node_modules\@angular\compiler\src\metadata_resolver.js:395
(anonymous) @ c:\Projects\src\ngx-charts\node_modules\@angular\compiler\src\jit\compiler.js:189
./node_modules/@angular/compiler/src/jit/compiler.js.JitCompiler._loadModules @ c:\Projects\src\ngx-charts\node_modules\@angular\compiler\src\jit\compiler.js:188
./node_modules/@angular/compiler/src/jit/compiler.js.JitCompiler._compileModuleAndComponents @ c:\Projects\src\ngx-charts\node_modules\@angular\compiler\src\jit\compiler.js:143
./node_modules/@angular/compiler/src/jit/compiler.js.JitCompiler.compileModuleAsync @ c:\Projects\src\ngx-charts\node_modules\@angular\compiler\src\jit\compiler.js:109
./node_modules/@angular/core/src/application_ref.js.PlatformRef_._bootstrapModuleWithZone @ c:\Projects\src\ngx-charts\node_modules\@angular\core\src\application_ref.js:416
./node_modules/@angular/core/src/application_ref.js.PlatformRef_.bootstrapModule @ c:\Projects\src\ngx-charts\node_modules\@angular\core\src\application_ref.js:391
(anonymous) @ app.js:371
./node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask @ c:\Projects\src\ngx-charts\node_modules\zone.js\dist\zone.js:275
./node_modules/zone.js/dist/zone.js.Zone.runTask @ c:\Projects\src\ngx-charts\node_modules\zone.js\dist\zone.js:151
ZoneTask.invoke @ c:\Projects\src\ngx-charts\node_modules\zone.js\dist\zone.js:345
app.js:372 Failed to load app.component.html
Expected behavior
npm start
not giving any errors
Reproduction of the problem
git clone
npm install
npm start
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
Windows 7 x64
Node 6.9.2
NPM 4.0.5
-
ngx-charts version: x.x.x latest master
-
Angular version: 2.x.x 2.4.6 that is coming with
npm install
-
Browser: [all]
-
Language: [TypeScript]
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
npm start fails with unexpected token in file from local ...
The issue Unexpected token '<' is because of missing the babel preset. you can simply install the babel dependency using node as follows....
Read more >Npm install command failing with message "could not find ...
When I run the npm install command, npm starts downloading the dependencies. But then, suddenly, it stops with the error:
Read more >angular/angular-cli - Gitter
My components are using ES6 imports to pull in the template (html) files. The code compiles and loads in the browser but the...
Read more >How I Fixed The Unexpected Token Error In Jest
I have a CRA TS app and was getting import error for axios while testing. I updated the test script to react-scripts test...
Read more >npm start fails on Unexpected token function - Drupal
Try to set this up in docker. I've got php container with npm, node, composer etc installed. I followed all steps. I have...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
hooray, After i restarted my machine i too got it, i dont know what helped me, thanks all, especially @kuncevic
What I did just now
npm god is in much better mood today.