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.

Import via systemjs

See original GitHub issue

Hello,

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:open
  • Created 7 years ago
  • Reactions:4
  • Comments:18

github_iconTop GitHub Comments

7reactions
dbogdantech101commented, Sep 7, 2016

Same Issue, used similar map and packages code for systemjs

screen shot 2016-09-07 at 2 09 51 pm

4reactions
TorWcommented, Nov 10, 2016

No fix for this yet? I have the same issue with 0.4.0-3

Read more comments on GitHub >

github_iconTop 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 >

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