Angular-tree-component: 7.0.2 MobX <-> Mobx-Angular Version incompatible?

Created on 19 Mar 2018  Â·  14Comments  Â·  Source: CirclonGroup/angular-tree-component

I get the following compile warning when starting an Angular project.

{code}
WARNING in ./node_modules/mobx-angular/dist/utils/mobx-angular-debug.js
223:15-27 "export 'getDebugName' was not found in 'mobx'

WARNING in ./node_modules/mobx-angular/dist/utils/mobx-angular-debug.js
29:28-45 "export 'getDependencyTree' was not found in 'mobx'
{code}

I use version 7.0.2 of the angular-tree-component, which then transitive retrieve:
{code}
"mobx": "3.6.2",
"mobx-angular": "2.2.0"
{code}

Looks like [email protected] and [email protected] seem to be incompatible? Does anyone else have this problem?

Most helpful comment

I was able to get it to work by using the 7.0.2-beta1 version.
see issue 578

Delete 3 folders under node_modules:

  • mobx
  • mobx-angular
  • angular-tree-component

Then install the beta1 version until the official release version is fixed:

Now everything seems to be working....

It's odd that the beta1 version works but the official release version does not?!?!?

All 14 comments

@JanLoebel I just updated my code to use the latest version (7.0.2) and its working fine. I did not get any error and I'm using

I've tried to remove the "package-lock.json" and node_modules, but nothing worked. I've also checked if I call anything regarding mobx or mobx-angular, but I don't import any of these two components. Any ideas?

# npm ll mobx mobx-angular
│ ## Modules
└─┬ [email protected]
  │ A simple yet powerful tree component for Angular2
  │ git+https://github.com/500tech/angular-tree-component.git
  │ https://github.com/500tech/angular-tree-component
  ├── [email protected]
  │   Simple, scalable state management.
  │   git+https://github.com/mobxjs/mobx.git
  │   https://mobx.js.org/
  └── [email protected]
      Angular connector to MobX (2 and above)
      git+https://github.com/mobxjs/mobx-angular.git
      https://github.com/mobxjs/mobx-angular#readme

What version of Angular are you using?
Maybe try uninstalling and installing again angular-tree-component?

I'm using Angular 5.2.9. I've already tried to remove and re-added it again.

In the browser the error looks like this:

asd

Same issue here..

Same issue with angular 5.2.0

@JanLoebel Sorry about that I had the warnings disabled on my build and I missed that. I do see it now too.

Same for me with angular ^5.0.0

I was able to get it to work by using the 7.0.2-beta1 version.
see issue 578

Delete 3 folders under node_modules:

  • mobx
  • mobx-angular
  • angular-tree-component

Then install the beta1 version until the official release version is fixed:

Now everything seems to be working....

It's odd that the beta1 version works but the official release version does not?!?!?

Same issue with angular 5.2.9

For me, I tried adding "mobx": "4.1.0" to package.json and ran npm install. That fixed the compile and runtime error. You'll get a warning in console saying there are duplicate mobx instances and could cause problems. …And they're right. The tree will not redraw if you update the tree model.

Went with @mpGitHub's steps and it works for me. https://github.com/500tech/angular-tree-component/issues/593#issuecomment-374630509

It seems like a package-lock.json problem.
I hope it will be fixed in 7.1.0

If the problem persists in 7.1.0 - please reopen the issue

I haven't seen those warnings with 7.1.0. I did do a rm -rf ./node_modules before tho. Might be worth a try🤔
On Wed, Mar 28, 2018 at 5:53 AM Julian Hohenöcker notifications@github.com
wrote:

After updating to 7.1.0 the warnings (provided by @JanLoebel
https://github.com/JanLoebel) still exist.

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thohoh picture thohoh  Â·  5Comments

Gillardo picture Gillardo  Â·  5Comments

BrkCoder picture BrkCoder  Â·  4Comments

Shadowlauch picture Shadowlauch  Â·  5Comments

AbhiThakare picture AbhiThakare  Â·  5Comments