Angular-tree-component: Can't bind to 'mobxAutorun' since it isn't a known property of 'ng-container' After Angular update

Created on 18 Dec 2017  Â·  9Comments  Â·  Source: CirclonGroup/angular-tree-component

I just updated my angular to the latest version

Angular CLI: 1.6.1
Node: 8.3.0
OS: win32 x64
Angular: 5.1.1
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, platform-server, router

@angular/cdk: 5.0.1
@angular/cli: 1.6.1
@angular/flex-layout: 2.0.0-beta.10-4905443
@angular/material: 5.0.1
@angular-devkit/build-optimizer: 0.0.36
@angular-devkit/core: 0.0.22
@angular-devkit/schematics: 0.0.42
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.9.1
@schematics/angular: 0.1.11
typescript: 2.6.2
webpack: 3.10.0

Error: Template parse errors:
Can't bind to 'mobxAutorun' since it isn't a known property of 'ng-container'.
1. If 'mobxAutorun' is an Angular directive, then add 'CommonModule' to the '@NgModule.imports' of this component.
2. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("
]*mobxAutorun="{dontDetach: true}">
*ngIf="!templates.treeNodeFullTemplate"
"): ng:///TreeModule/TreeNodeComponent.html@1:18
Property binding mobxAutorun not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the "@NgModule.declarations". ("
[ERROR ->]
*ngIf="!templates.treeNodeFullTem"): ng:///TreeModule/TreeNodeComponent.html@1:4
at syntaxError c:/dev/portal-b2b/node_modules/@angular/compiler/esm5/compiler.js:485:22)
at TemplateParser.webpackJsonp.../../../compiler/esm5/compiler.js.TemplateParser.parse c:/dev/portal-b2b/node_modules/@angular/compiler/esm5/compiler.js:24631:1)
at JitCompiler.webpackJsonp.../../../compiler/esm5/compiler.js.JitCompiler._parseTemplate c:/dev/portal-b2b/node_modules/@angular/compiler/esm5/compiler.js:34442:1)
at JitCompiler.webpackJsonp.../../../compiler/esm5/compiler.js.JitCompiler._compileTemplate c:/dev/portal-b2b/node_modules/@angular/compiler/esm5/compiler.js:34417:1)
at http://localhost:9876/_karma_webpack_/webpack:/c:/dev/portal-b2b/node_modules/@angular/compiler/esm5/compiler.js:34318:48
at Set.forEach ()
at JitCompiler.webpackJsonp.../../../compiler/esm5/compiler.js.JitCompiler._compileComponents c:/dev/portal-b2b/node_modules/@angular/compiler/esm5/compiler.js:34318:1)
at http://localhost:9876/_karma_webpack_/webpack:/c:/dev/portal-b2b/node_modules/@angular/compiler/esm5/compiler.js:34206:1
at Object.then c:/dev/portal-b2b/node_modules/@angular/compiler/esm5/compiler.js:474:33)
at JitCompiler.webpackJsonp.../../../compiler/esm5/compiler.js.JitCompiler._compileModuleAndAllComponents c:/dev/portal-b2b/node_modules/@angular/compiler/esm5/compiler.js:34204:1)

Most helpful comment

This issue caused by angular-tree-component use old version of mobx, try solve it by

npm install --save mobx-angular mobx

then remove folder project_root/node_modules/angular-tree-component/node_modules

All 9 comments

check mobx and mobx-angular (at dir node_modules) if low version? try upgrade them 'npm install mobx mobx-angular'

Maybe remove node_modules and reinstall

Adam Klein
Chief Technology Officer

Tel. +972-52-7475633 <+972527475633>
Web 500tech.com http://www.500tech.com/ | github.com/500tech |
@adamklein500 http://twitter.com/adamklein500

On Tue, Dec 19, 2017 at 6:10 AM, gaop notifications@github.com wrote:

check mobx and mobx-angular (at dir node_modules) if low version? try
upgrade them 'npm install mobx mobx-angular'

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/500tech/angular-tree-component/issues/510#issuecomment-352634565,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA2SSrAHtD7nBOLwGrYaS6ekj5jwagG0ks5tBzczgaJpZM4RE_iE
.

First thing I've done, error still happening

Can you reproduce here?
https://plnkr.co/edit/u5fMmaM14rJ0aqG3k240?p=preview

On Wed, Dec 20, 2017 at 2:46 AM, phmello notifications@github.com wrote:

First thing I've done, error still happening

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/500tech/angular-tree-component/issues/510#issuecomment-352931279,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA2SSvoA5MaLdSr7XFASxvKIBLLbzZTzks5tCFj7gaJpZM4RE_iE
.

Facing the same issue. Started after latest version. I will try to provide more info and way to reproduce.

I have the same problem.

is there anyone who resolved this problem? TT

This issue caused by angular-tree-component use old version of mobx, try solve it by

npm install --save mobx-angular mobx

then remove folder project_root/node_modules/angular-tree-component/node_modules

Closing this issue due to inactivity. Please open a new issue if the problem still exists.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chpasha picture chpasha  Â·  5Comments

filipemansano picture filipemansano  Â·  5Comments

Vishnusangam picture Vishnusangam  Â·  4Comments

JanSchuermannPH picture JanSchuermannPH  Â·  4Comments

anoop-chauhan picture anoop-chauhan  Â·  3Comments