Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot resolve dependency 'prop-types' with react 17.0 #35

Open
junip opened this issue Apr 4, 2021 · 5 comments
Open

Cannot resolve dependency 'prop-types' with react 17.0 #35

junip opened this issue Apr 4, 2021 · 5 comments

Comments

@junip
Copy link

junip commented Apr 4, 2021

Build is failing with the recent updated version - version - 2.1.2

@junip junip changed the title Cannot resolve dependency 'prop-types' Cannot resolve dependency 'prop-types' with react 17.0 Apr 4, 2021
louiechristie pushed a commit to louiechristie/memes that referenced this issue Jan 18, 2022
@metalmatze
Copy link

Hey,
any ideas how to move forward with this aka using newer version than React v16?

@metalmatze
Copy link

metalmatze commented Apr 15, 2022

For now I've "fixed" the issue by npm i prop-types and it seems fine.

@AurelianSpodarec
Copy link

Can this not be fixed via the library so we don't have to do that ourselves?

But also didn't seem like that solved for me:

Server Error
Error: Cannot read properties of undefined (reading 'prototype')

This error happened while generating the page. Any console logs will be displayed in the terminal window.
⨯ node_modules\react-responsive-masonry\lib\Masonry\index.js (14:94) @ prototype
 ⨯ TypeError: Cannot read properties of undefined (reading 'prototype')

@lucasartsfr
Copy link

Problem is still there, even with nextjs. Any fix ?

@louiechristie
Copy link
Contributor

I abandoned this dependency and used css grid instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants