angular-tree-component: "lodash/defaultsDeep" systemJS Error

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',

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 16 (2 by maintainers)

Most upvoted comments

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' }
.....
}