ngx-chips: Can't import ng2-tag-input to Angular Cli project
I’m submitting a … (check one with “x”)
[x ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request/question
Current behavior
ERROR in …/ngModules/shared/src/app/app.module.ts Module not found: Error: Can’t resolve ‘ng2-tag-input’
Expected behavior
app works
Minimal reproduction of the problem with instructions (if applicable)
Start new project via angular cli (“@angular/cli”: “1.0.0”,), and try to add ng2-tags-input to it.
Imported in app.module.ts
import { TagInputModule } from ‘ng2-tag-input’; imports: [ TagInputModule ],
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
angular cli (“@angular/cli”: “1.0.0”,)
Angular version:
4.0.0
ng2-tag-input version:
1.05
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
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 25 (11 by maintainers)
https://github.com/webcat12345/heroku-ng2-tag-input-test
This is repository url. Travis and Heroku integrated.
AoT build fails. Actually on local.
ng2-tag-input package version is : 1.2.5 angular & angular-cli version is : 4.1.0
Build progress is here. https://travis-ci.org/webcat12345/heroku-ng2-tag-input-test
I think problem is : Path :
node_modules/ng2-tag-input/dist/modules/components/tag/tag.template.html
Template :(dblclick)="editable ? toggleEditMode($event) : undefined"
Component :TagComponent.prototype.toggleEditMode = function () {
Component Code should contains parameter. https://github.com/angular/angular-cli/issues/5733#issuecomment-291089841