angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Angular 2 Error: TypeError: Cannot read property 'stateChangeExpr' of null

Open tatokhorava opened this issue 9 years ago • 12 comments

I've all latest packages installed, when I run my app in browser getting this error.. what can be the issue?

TypeError: Cannot read property 'stateChangeExpr' of null at _parseAnimationStateTransition (http://localhost:4200/vendor.bundle.js:31828:68) at http://localhost:4200/vendor.bundle.js:31792:97 at Array.map (native) at AnimationParser.parseEntry (http://localhost:4200/vendor.bundle.js:31792:64) at http://localhost:4200/vendor.bundle.js:31749:49 at Array.map (native) at AnimationParser.parseComponent (http://localhost:4200/vendor.bundle.js:31748:67) at JitCompiler._compileTemplate (http://localhost:4200/vendor.bundle.js:63445:71) at http://localhost:4200/vendor.bundle.js:63331:62 at Set.forEach (native) at JitCompiler._compileComponents (http://localhost:4200/vendor.bundle.js:63331:19) at createResult (http://localhost:4200/vendor.bundle.js:63213:19) at ZoneDelegate.invoke (http://localhost:4200/vendor.bundle.js:126265:26) at Zone.run (http://localhost:4200/vendor.bundle.js:126025:43) at http://localhost:4200/vendor.bundle.js:126660:57 Error: Uncaught (in promise): TypeError: Cannot read property 'stateChangeExpr' of null

tatokhorava avatar Mar 18 '17 22:03 tatokhorava

Same here.

vbudilov avatar Mar 22 '17 15:03 vbudilov

@tatokhorava @vbudilov Is there a repo we can look at?

sumitarora avatar Mar 22 '17 20:03 sumitarora

@sumitarora , that was my mistake. No longer an issue on my side. The problem was that the name of the 'target' was misspelled in my view, and that's the message that it generated.

vbudilov avatar Mar 22 '17 20:03 vbudilov

@tatokhorava please open a new issue and fill in the issue template, otherwise we cannot help you.

filipesilva avatar Mar 23 '17 21:03 filipesilva

Anyone have a solution for this?

imjonsnow avatar Mar 31 '17 00:03 imjonsnow

I don't have a solution but also have this error... i just upgraded ng2-toastr from 1.36 to 4.01 and @angular/animation was missing. After installing it, i got this error. Any advise?

avgalon avatar Apr 04 '17 07:04 avgalon

Sorry guys for delay.. I could not find concrete solution, though I have updated all my packages to latest and it helped.. Thanks.

tatokhorava avatar Apr 04 '17 07:04 tatokhorava

console output this warning npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none was installed. so update your angular packages to 4.0+ can solve the problem angular is now on version 4.0 and don't forget to update angular-cli

wuyanxin avatar Apr 11 '17 14:04 wuyanxin

the same and have u found a solution?

seize11 avatar Jun 01 '17 11:06 seize11

Solved this issue on my machine. if you are using earlier versions of angular2 (2.4.10 in my case), then the animate package is included in core. Refer to it like this: import { trigger, state, style, transition, animate, keyframes} from '@angular/core';

darin-cardin avatar Aug 22 '17 17:08 darin-cardin

any solution? ERROR in Cannot read property 'stateChangeExpr' of null

ERROR in ./src/main.ts Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in '/opt/lampp/htdocs/todo/todoclient/src' @ ./src/main.ts 6:29-76 @ multi ./src/main.ts

Midhilaj avatar Sep 28 '17 05:09 Midhilaj

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.