Getting error when installing package
diegodesouza opened this issue · 1 comments
diegodesouza commented
(2,112): error TS2307: Cannot find module '@angular/core'.
...
(13,29): error TS2305: Module '"/node_modules/ng2-select2/ng2-select2"' has no exported member 'Select2Options'.
ERROR in ./src/app/index.ts
Module not found: Error: Can't resolve '../../node_modules/select2/dist/js/select2.full.js' in '.../src/app'
@ ./src/app/index.ts 22:0-61
@ ./src/index.ts
ERROR in .../~/ng2-select2/ng2-select2.js
Module not found: Error: Can't resolve '@angular/core' in '.../node_modules/ng2-select2'
@ .../~/ng2-select2/ng2-select2.js 8:13-37
@ ./src/app/index.ts
@ ./src/index.ts
ERROR in .../~/ng2-select2/ng2-select2.component.js
Module not found: Error: Can't resolve 'jquery' in '.../node_modules/ng2-select2'
@ .../~/ng2-select2/ng2-select2.component.js 1:0-17
@ .../~/ng2-select2/ng2-select2.js
@ ./src/app/index.ts
@ ./src/index.ts
ERROR in .../~/ng2-select2/ng2-select2.component.js
Module not found: Error: Can't resolve '@angular/core' in '.../ng2-select2'
@ .../~/ng2-select2/ng2-select2.component.js 11:13-37
@ .../~/ng2-select2/ng2-select2.js
@ ./src/app/index.ts
@ ./src/index.ts
I noticed that the npm version says 1.0.0-beta.10
and that's what is in my package.json
though when I looked in the last commit the tag was 1.0.0-beta.0
instead. Am i missing something?
EDIT: I see the commits for the patches, i did miss it. Though I'm not sure why I get the errors.
diegodesouza commented
Some how the package got installed into another node_modules. Don't know how this node_modules got there either, how this happened.