Comments (11)
Use the latest react-is feature "isMemo" but without upgrading to the correct version of react-is
WHY?
We're not:
hoist-non-react-statics/package.json
Line 27 in 4fbd062
Do you get the same error as #74?
from hoist-non-react-statics.
Use the latest react-is feature "isMemo" but without upgrading to the correct version of react-is
WHY?We're not:
hoist-non-react-statics/package.json
Line 27 in 4fbd062
"react-is": "^16.7.0"
Do you get the same error as #74?
Yes, exactly the same error. any solution on this?
from hoist-non-react-statics.
WHY do you use the "higher" feature without upgrading the dependencies, it would caused a lot of error who using this lib.
from hoist-non-react-statics.
WHY do you use the "higher" feature without upgrading the dependencies, it would caused a lot of error who using this lib.
I already told you we upgraded the dependency: https://github.com/mridgway/hoist-non-react-statics/pull/73/files#diff-b9cfc7f2cdf78a7f4b91a753d10865a2L27
The package manager you're using seems to create a broken node_modules/ layout. Maybe your build pipeline is responsible for it.
from hoist-non-react-statics.
WHY do you use the "higher" feature without upgrading the dependencies, it would caused a lot of error who using this lib.
I already told you we upgraded the dependency: https://github.com/mridgway/hoist-non-react-statics/pull/73/files#diff-b9cfc7f2cdf78a7f4b91a753d10865a2L27
The package manager you're using seems to create a broken node_modules/ layout. Maybe your build pipeline is responsible for it.
No~~ 16.7.0 does not have the isMemo function either, it's on 16.8.1
see here: codesandbox/codesandbox-client#1521 (comment)
from hoist-non-react-statics.
quote here:
So this means that the requested version by hoist-non-react-statics is ^16.6.3, and the resolved version is 16.7.0, which is correct. isMemo got added in 16.8.1.
from hoist-non-react-statics.
Sorry, my bad, my misunderstanding.
from hoist-non-react-statics.
Using hoist-non-react-statics with NextJS is also causing this problem for me
TypeError: ReactIs.isMemo is not a function
Which is the fix? If isMemo is added in 16.7.0 shouldn't it be working?
Thanks for your time in advance.
from hoist-non-react-statics.
This is likely an issue with the build setup from NextJS
. next
requires [email protected]
which does not include isMemo
. It would be solved automatically if next
wouldn't pint their dependencies to PATCH but rather MAJOR but they insist on it.
from hoist-non-react-statics.
I'm also getting this error from react-redux connect() method after installing on new machine, right now I'm just checking if
If (isMemo && If isMemo(component))
in the .cjs file locally to get around it for now... any reason not to put the "react-is" dep to "16.8.1"?
from hoist-non-react-statics.
@DBeardionaire your build setup is probably broken. Try resolutions field in your package.json to force a single version.
Why we dont bump the version? We dont need to as is shown in the conversation here.
from hoist-non-react-statics.
Related Issues (20)
- Minified build in npm package makes auditing difficult
- how can I use this package to extract atrributes of dynamic import react component
- Allow react version ^17 HOT 3
- `isMemo` check always returns false for components HOT 2
- Please update description in understendable way
- tsc build declaration error: Subsequent property declarations must have the same type.
- error: Error: While trying to resolve module `hoist-non-react-statics`
- Please release a new version which uses inclusive language
- React.forwardRef results in propTypes etc. being hoisted HOT 8
- Drop React <16.0.0 support? HOT 5
- missing dist/ folder in 3.3.0 release on GitHub HOT 3
- Why not supported copy static defaultProps, displayName? HOT 4
- When hoisting: Keep prop value if context value is undefined HOT 7
- Object.getPrototypeOf called on non-object HOT 1
- Reduce bundle size HOT 4
- Incorrect AMD definition HOT 2
- Remove publishConfig block from package.json HOT 3
- Please tell Version for react-redux HOT 1
- Improve typing of third argument HOT 1
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 hoist-non-react-statics.