Import via systemjs
See original GitHub issueHello,
I’m trying to import this module via systemjs with this configuration:
map = {
...
'ng2-smart-table': 'js/node_modules/ng2-smart-table',
};
packages = {
...
'ng2-smart-table': {
main: 'build/ng2-smart-table.js',
defaultJSExtension: 'js',
},
};
and I’m getting error that it can’t find other files that ng2-smart-table.js cannot find:
http://localhost:8000/js/node_modules/ng2-smart-table/build/src/ng2-smart-table/lib.js 404 (Not Found)
Issue Analytics
- State:
- Created 7 years ago
- Reactions:4
- Comments:18
Top Results From Across the Web
SystemJS import from Webpack bundle #2092 - GitHub
I can't figure out how to import modules from Webpack bundle. Basically I have several libraries using AMD. If I use import map...
Read more >Use ES6 modules in the browser today with SystemJS
System.js is one of these tools. It is a module loader that, besides ES6, can also load global modules, AMD or CommonJS modules....
Read more >How to load named exports with SystemJS - Stack Overflow
When, as in your question, you are importing CommonJS modules (exported via module.exports ) using ES6 import , you will only get the...
Read more >https://newweb.psci.net/wp-content/plugins/pivot-b...
Compiling Modules into a Bundle [SystemJS ... Alternatively, we could import the bundle itself via `SystemJS.import`, but then need to nest the import...
Read more >Using SystemJS as a JavaScript Loader - nystudio107
When SystemJS goes to load this main.js JavaScript, it knows we want all of those modules imported, and it'll load them for us...
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
Same Issue, used similar map and packages code for systemjs
No fix for this yet? I have the same issue with 0.4.0-3