Giter VIP home page Giter VIP logo

Comments (10)

acrazing avatar acrazing commented on September 27, 2024

Thanks, and it's fine now.

from mobx-sync.

suenot avatar suenot commented on September 27, 2024

Checked. Problem still exist.

from mobx-sync.

suenot avatar suenot commented on September 27, 2024

mobxjs/mobx#1082 (comment)

from mobx-sync.

acrazing avatar acrazing commented on September 27, 2024

Please post the following information:

  1. the versions of mobx-sync, you can get it by run npm ls mobx-sync
  2. the personal dependencies of mobx-sync, you can get it by run ls -lh ./node_modules/mobx-sync/node_modules

Thank you.

from mobx-sync.

suenot avatar suenot commented on September 27, 2024

Installed with yarn add mobx-sync (i had v1.3.2, latest v1.9.4)

ᐅ npm ls mobx-sync
[email protected] /Users/suenot/work2/terminal/react-client
└── UNMET DEPENDENCY mobx-sync@^0.8.4

npm ERR! missing: mobx-sync@^0.8.4, required by [email protected]
ᐅ ls -lh ./node_modules/mobx-sync/node_modules
total 0
drwxr-xr-x  7 suenot  staff   238B Sep  7 08:59 mobx

and in this case I had error in browser console:

Uncaught Error: [mobx] There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`
    at invariant$$1 (mobx.module.js:98)
    at fail$$1 (mobx.module.js:93)
    at mobx.module.js:1295

but

Installed with npm --save mobx-sync

ᐅ npm ls mobx-sync
[email protected] /Users/suenot/work2/terminal/react-client
└── [email protected]

ᐅ ls -lh ./node_modules/mobx-sync/node_modules
ls: ./node_modules/mobx-sync/node_modules: No such file or directory

and in this case I had not got erro in browser console.

from mobx-sync.

suenot avatar suenot commented on September 27, 2024

with new yarn problem has been exist :(

from mobx-sync.

acrazing avatar acrazing commented on September 27, 2024

Maybe it is not caused by mobx-sync, please run this code and post the output:

rm -rf node_modules
yarn
npm ls mobx

from mobx-sync.

suenot avatar suenot commented on September 27, 2024
rm -rf node_modules
rm -f package-lock.json

After remove modules, error in terminal had been fixed.

ᐅ yarn
yarn install v1.9.4
warning ../../../package.json: No license field
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
warning " > [email protected]" has unmet peer dependency "prop-types@^15.5.7".
warning " > [email protected]" has unmet peer dependency "prop-types@^15.5.4".
[4/4] 📃  Building fresh packages...
✨  Done in 167.97s.
ᐅ npm ls mobx
[email protected] /Users/suenot/work2/terminal/react-client
├── [email protected]
└─┬ [email protected]
  └── [email protected]

But in browser console:

mobx.module.js:98 Uncaught Error: [mobx] There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`
    at invariant$$1 (mobx.module.js:98)
    at fail$$1 (mobx.module.js:93)
    at mobx.module.js:1295

Problem only with yarn, with npm plugin works perfect.

from mobx-sync.

acrazing avatar acrazing commented on September 27, 2024

you may need to remove your yarn.lock file by run rm yarn.lock, and then run yarn again.

The dependency is '*' in may package.json

from mobx-sync.

suenot avatar suenot commented on September 27, 2024

Thank you! Problem was in yarn.lock.

from mobx-sync.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.