GithubHelp home page GithubHelp logo

Comments (7)

LeonardoGentile avatar LeonardoGentile commented on June 12, 2024

as I remember there are quite some breaking changes and incompatibility introduced by mobx 5 so I would need some time to review if they can affect the plugin.

Do you have some time to help?

from react-mobx-router5.

micros123 avatar micros123 commented on June 12, 2024

The changelog and breaking changes list is a lot shorter than it was for 3 -> 4. Looking at it, I doubt it could break a lot. But if you can point me in the direction of where you expect problems I might be able to have a look.

from react-mobx-router5.

LeonardoGentile avatar LeonardoGentile commented on June 12, 2024

still from memory, 4 was a release supposed to be a bridge to 5. Meaning it would offer the same things but being backward compatible, while 5 would only support modern browsers.

I might be wrong so looking at their doc would be the best

from react-mobx-router5.

Dragomir-Ivanov avatar Dragomir-Ivanov commented on June 12, 2024

Hi there, Any progress on this? I get this when try to use:

TypeError: _this.router.hasPlugin is not a function
new RouteNode
node_modules/react-mobx-router5/dist/index.es.js:204
  201 | _this.routerStore = props[storeName];
  202 | ifNot(_this.routerStore, '[react-mobx-router5][routeNode] missing routerStore');
  203 | _this.router = _this.routerStore.router || null;
> 204 | ifNot(_this.router && _this.router.hasPlugin('MOBX_PLUGIN'), '[react-mobx-router5][routeNode] missing mobx plugin');
      | ^  205 | _this.state = {
  206 |   route: _this.routerStore.route
  207 | };

These are my deps:

   "react-mobx-router5": "^6.1.1",
    "react-router5": "^7.0.2",
    "mobx": "^5.8.0",
    "mobx-react": "^5.4.3",
    "mobx-router5": "^4.2.3",
    "router5": "^7.0.1",
    "router5-plugin-browser": "^7.0.1",
    "router5-plugin-logger": "^7.0.1",

Thanks.

from react-mobx-router5.

Dragomir-Ivanov avatar Dragomir-Ivanov commented on June 12, 2024

It seems hasPlugin has been removed: https://router5.js.org/migration/migrating-from-6.x-to-7.x

from react-mobx-router5.

LeonardoGentile avatar LeonardoGentile commented on June 12, 2024

@Dragomir-Ivanov this has nothing to do with MobX, you are linking the router5 migration docs.
This discussion is about Mobx (not router5) compatibility versions.

The problem you are having is because you installed a version of router5 not yet supported by this packages, at this time I only support router5 >= 6.1.2 (excluding 7+).

It is mentioned in the installation section.

from react-mobx-router5.

LeonardoGentile avatar LeonardoGentile commented on June 12, 2024

V. 6.2.0 now support the peer deps mobx >= 5 (not much changed on my side).
Please notice that mobx 5 introduced some breaking changes and it will only work in environments providing native support for Proxy, here's the migration guide

Please let me if you find any trouble

from react-mobx-router5.

Related Issues (12)

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.