question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SystemJS import error, v2.8.0

See original GitHub issue

Hello, I have encountered the following error while using the updated version of component:

(SystemJS) XHR error (404 Not Found) loading http://localhost:8000/projects/dev/traceur↵
Error: XHR error (404 Not Found) loading http://localhost:8000/projects/dev/traceur↵	    
at XMLHttpRequest.wrapFn [as _onreadystatechange] (http://localhost:8000/static/node_modules/zone.js/dist/zone.js:1039:29) [<root>]↵	   
 at Zone.runTask (http://localhost:8000/static/node_modules/zone.js/dist/zone.js:151:47) [<root> => <root>]↵	    
at XMLHttpRequest.ZoneTask.invoke (http://localhost:8000/static/node_modules/zone.js/dist/zone.js:345:33) [<root>]↵	
Error loading http://localhost:8000/projects/dev/traceur↵	
Unable to load transpiler to transpile http://localhost:8000/static/node_modules/angular2-tree-component/dist/angular2-tree-component.js↵	
Error loading http://localhost:8000/static/node_modules/angular2-tree-component/dist/angular2-tree-component.js as "angular2-tree-component" from http://localhost:8000/static/projects/src/app.module.js

Previous version (2.7.0) works perfectly fine.

angular2-tree-component: v2.8.0 @angular: v2.4.4

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
EdmondChuiHWcommented, Feb 15, 2017

cef0aad (2.8.1) is now working with the following map for SystemJS, no entry in packages required. I would consider this closed. Thanks @adamkleingit!

map: {
  // angular bundles
  '@angular/core': 'npm:@angular/core/bundles/core.umd.js',
  …
  'angular2-tree-component': 'node_modules/angular2-tree-component/dist/angular2-tree-component.umd.js',
  …
}
0reactions
adamkleingitcommented, Feb 18, 2017

No problem. I’m not using SystemJS myself. Is there anything I can do to make it clearer on how to use it with SystemJS or make it easier to use?

On Thu, Feb 16, 2017 at 9:28 AM, Jude Quinn notifications@github.com wrote:

@adamkleingit https://github.com/adamkleingit thanks a lot, closing the issue.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/500tech/angular2-tree-component/issues/160#issuecomment-280253545, or mute the thread https://github.com/notifications/unsubscribe-auth/AA2SStdckYVLfixHxdrypVZ2bgre3gaDks5rc_q5gaJpZM4L2Ocr .

Read more comments on GitHub >

github_iconTop Results From Across the Web

systemjs/errors.md at main - GitHub
SystemJS Error #1 occurs when you have a <script type="systemjs-importmap"></script> element in your HTML page that has invalid JSON content (See import ......
Read more >
SystemJS error when importing modules into AngularJS
SystemJS error when importing modules into AngularJS - Anonymous System.register calls can only be made by modules loaded by SystemJS.import.
Read more >
How to Dynamically Import JavaScript with Import Maps
How to Dynamically Import JavaScript with Import Maps · Step 1 — Creating an HTML Page and Inserting JavaScript · Step 2 —...
Read more >
systemjs/systemjs - Gitter
config.js) I am currently trying to use karma to test code that imports files contained in this bundle. I'm using a karma-test-shim to...
Read more >
Upgrading from AngularJS to Angular
Using a module loader such as SystemJS, Webpack, or Browserify allows us to use the built-in module systems of TypeScript or ES2015. You...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found