Cannot find module 'Core', 'Components', 'tag'.
See original GitHub issueI’m submitting a … (check one with “x”)
[ ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request/question
Current behavior
Unable to compile the code.
Expected behavior
Need to use of the module as in the examples.
Minimal reproduction of the problem with instructions (if applicable)
- Added the module and added “Basic example” code to test the module.
- While compiling the code the below issue is coming up. ERROR in xyz/node_modules/ng2-tag-input/dist/modules/components/dropdown/tag-input-dropdown.component.d.ts (3,26): Cannot find module ‘core’.
ERROR in xyz/node_modules/ng2-tag-input/dist/modules/components/dropdown/tag-input-dropdown.component.d.ts (4,35): Cannot find module ‘components’.
ERROR in xyz/node_modules/ng2-tag-input/dist/modules/components/tag/tag.component.d.ts (2,26): Cannot find module ‘core’.
ERROR in xyz/node_modules/ng2-tag-input/dist/modules/components/tag/tag.component.d.ts (3,27): Cannot find module ‘tag’.
ERROR in xyz/node_modules/ng2-tag-input/dist/modules/components/tag-input/tag-input.d.ts (8,44): Cannot find module ‘core’.
ERROR in xyz/node_modules/ng2-tag-input/dist/modules/components/tag-input/tag-input.d.ts (9,62): Cannot find module ‘components’. webpack: Failed to compile.
What is the motivation / use case for changing the behavior? (if applicable)
What do you use to build your app? (SystemJS, Webpack, angular-cli, etc.). Please specify the version
Webpack
Angular version:
“@angular/core”: “^4.0.0”
ng2-tag-input version:
“ng2-tag-input”: “^1.3.1”
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
All browsers.
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (4 by maintainers)
Already filed here: https://github.com/Gbuomprisco/ng2-tag-input/issues/419
At the moment you can just use 1.2.9. But only without AoT 😦
Hi all, this should have been fixed by @eyalhakim. I would have loved to keep the named paths intact, but apparently the CLI won’t work with them just yet. Please reopen this ticket if you still have issues.😃