Giter Club home page Giter Club logo

Comments (11)

eps1lon avatar eps1lon commented on September 20, 2024

Use the latest react-is feature "isMemo" but without upgrading to the correct version of react-is

WHY?

We're not:

"react-is": "^16.7.0"

Do you get the same error as #74?

from hoist-non-react-statics.

KevinYaoooooo avatar KevinYaoooooo commented on September 20, 2024

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.

KevinYaoooooo avatar KevinYaoooooo commented on September 20, 2024

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.

eps1lon avatar eps1lon commented on September 20, 2024

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.

KevinYaoooooo avatar KevinYaoooooo commented on September 20, 2024

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.

KevinYaoooooo avatar KevinYaoooooo commented on September 20, 2024

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.

KevinYaoooooo avatar KevinYaoooooo commented on September 20, 2024

Sorry, my bad, my misunderstanding.

from hoist-non-react-statics.

manelet avatar manelet commented on September 20, 2024

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.

eps1lon avatar eps1lon commented on September 20, 2024

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.

DBeardionaire avatar DBeardionaire commented on September 20, 2024

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.

eps1lon avatar eps1lon commented on September 20, 2024

@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)

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.