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.

"lodash/defaultsDeep" systemJS Error

See original GitHub issue

I just rebuild my whole node_modules folder and I ran into this error message

(SystemJS) Module not already loaded loading “lodash/defaultsDeep”

I’m on angular 4.0.2 and atc 3.3.1. I also tried using atc 3.2.4 which did work in that regard.

This is my atc entry in the systemJS config:

'angular-tree-component': 'npm:angular-tree-component/dist/angular-tree-component.umd.js',

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:16 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
sasinandreicommented, Apr 29, 2017

Hi all, Adding the following block to system.config.js seems to work for me now.

paths: {
            'npm:': 'node_modules/'
},
map: {
.....
            'lodash': 'npm:lodash',
            'angular-tree-component': 'npm:angular-tree-component/dist'
.....
},
packages: {
....
            lodash: { defaultExtension: 'js' },
            'angular-tree-component': { format: 'cjs', main: 'angular-tree-component.umd.js', defaultExtension: 'js' }
.....
}
0reactions
adamkleingitcommented, Jul 11, 2017

@sasinandrei - thanks. I dropped support for SystemJS, closing this one.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"lodash/defaultsDeep" systemJS Error · Issue #262 - GitHub
I just rebuild my whole node_modules folder and I ran into this error message (SystemJS) Module not already loaded loading ...
Read more >
Developers - "lodash/defaultsDeep" systemJS Error - - Bountysource
I just rebuild my whole node_modules folder and I ran into this error message. (SystemJS) Module not already loaded loading "lodash/defaultsDeep".
Read more >
Trouble importing lodash with systemjs from compiled typescript
The lodash.js file is requested by the browser successfully, but seems to be loaded incorrectly by the systemjs loader.
Read more >
lodash.defaultsdeep - npm
lodash.defaultsdeep v4.6.1. The Lodash method _.defaultsDeep exported as a Node.js module. Installation. Using npm: $ {sudo -H} npm i -g npm.
Read more >
node-lodash/4.17.21+dfsg+~cs8.31.189.20210220-2
This fixes #979531 but it uses a new upstream version of lodash-cli which is embedded in node-lodash. We were unaware of the new...
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