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.

Can't import ng2-tag-input to Angular Cli project

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:25 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
webcat12345commented, May 2, 2017

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

0reactions
webcat12345commented, May 7, 2017

Thanks, Its working.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How should I install ng2-tag-input library to the angular-cli ...
1) Install the library npm install ng2-tag-input --save. 2) Import TagInputModule to your module import { TagInputModule } from 'ng2-tag-input'; ...
Read more >
Angular ng-select - npm
Step 1: Install ng-select : · Step 2: Import the NgSelectModule and angular FormsModule module: · Step 3: Include a theme: · Step...
Read more >
SelectControlValueAccessor - Angular
To use a select in a template-driven form, simply add an ngModel and a name attribute to the main <select> tag. content_copy import...
Read more >
Angular 5 Tutorial: Guide to Your First Angular 5 App - Toptal
angular -cli.json (1254 bytes) create getting-started-ng5/.editorconfig (245 bytes) create getting-started-ng5/.gitignore (516 bytes) ...
Read more >
ng2-completer - npm Package Health Analysis - Snyk
An important project maintenance signal to consider for ng2-completer is that it hasn't seen any new versions released to npm in the past...
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