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.

Requires BrowserAnimationsModule but does not detail this in documentation

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

Current behavior Tags do not work at all. Error in console related to fade animation.

Expected behavior Tags should display.

Minimal reproduction of the problem with instructions Clone ng2-tag-input, run the dev server, navigate to localhost:3000

What is the motivation / use case for changing the behavior? it’s broken otherwise

What do you use to build your app? (SystemJS, Webpack). Please specify the version visible in ng2-tag-input demo in project

  • Angular version: 4.0.X

  • ng2-tag-input version: latest

  • 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

Solution: App needs to import import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; and import it into the main AppModule instead of BrowserModule

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
mebiboucommented, Apr 12, 2017

Came upon this, and actually when using Angular 4.0.0 you also need to add @angular/animations in your package.json

1reaction
Gbuompriscocommented, Apr 10, 2017

@hackash what? Just add BrowserAnimationsModule mate

Read more comments on GitHub >

github_iconTop Results From Across the Web

Need BrowserAnimationsModule in Angular ... - Stack Overflow
Hi I am using Angular that uses the BrowserAnimationsModule. But in the universal server side it gives the error "document is not defined". ......
Read more >
Need BrowserAnimationsModule in Angular but gives error in ...
Hi I am using Angular that uses the BrowserAnimationsModule. But in the universal server side it gives the error "document is not defined"....
Read more >
angular/animations - npm
Please file issues and pull requests against that repo. Usage information and reference details can be found in Angular documentation.
Read more >
How To Use PrimeNG Components in Angular - DigitalOcean
This will configure a new Angular project with styles set to “CSS” (as opposed to “Sass”, Less", or “Stylus”), no routing, and skipping...
Read more >
Getting started | Angular Material
Note that this snapshot build should not be considered stable and may ... Once the animations package is installed, import BrowserAnimationsModule into your ......
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