Comments (7)
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.
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.
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.
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.
It seems hasPlugin
has been removed: https://router5.js.org/migration/migrating-from-6.x-to-7.x
from react-mobx-router5.
@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.
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)
- Update peerDependencies to [email protected] HOT 2
- BaseLink onClick prop should not require router HOT 4
- Hooks? HOT 1
- A better 'Something went wrong.' view HOT 6
- Facing issues with latest version of react HOT 1
- support for disabled attribute in BaseLink HOT 2
- react 16 support HOT 1
- duplicate rendering HOT 7
- Nested RouterNode's do not react when matching same route HOT 13
- update to support MobX 4 HOT 1
- Feedback from users HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-mobx-router5.