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

Incorrect peer dependency version #122

Closed
ersel opened this issue Dec 6, 2018 · 7 comments · Fixed by #123
Closed

Incorrect peer dependency version #122

ersel opened this issue Dec 6, 2018 · 7 comments · Fixed by #123

Comments

@ersel
Copy link
Contributor

ersel commented Dec 6, 2018

After the last update to enzyme-to-json 3.3.5 our tests started failing with a mixture of:

TypeError: Cannot read property '$$typeof' of undefined

and also

TypeError: Cannot convert a Symbol value to a string

These problems only occur if you're using an enzyme version 3.3.0 or earlier, so I believe peer dependency listed in package.json is no longer correct after the last update.

Enzyme peer dependency version should be ^3.4.0.

@alanyinjs
Copy link

Seems to be caused by this change:
capture

@ersel
Copy link
Contributor Author

ersel commented Dec 19, 2018

What's your enzyme version @alanyinjs ?Try upgrading to a newer version if you are below 3.3.0.

@alanyinjs
Copy link

@ersel I am using [email protected]. I'm just using [email protected] as a temporary fix 😄

@ersel
Copy link
Contributor Author

ersel commented Dec 21, 2018

You should upgrade enzyme to something higher than 3.3.0 @alanyinjs

@RiccardoF
Copy link

RiccardoF commented Mar 14, 2019

When I upgraded to 3.3.5 I still have the error:
TypeError: Cannot read property '$$typeof' of undefined

With the version 3.3.4 is fine. @alanyinjs

@mcguiretj18
Copy link

mcguiretj18 commented Jul 29, 2019

Updating to the latest enzyme package worked for me

@VincentLanglet
Copy link
Collaborator

#123 is merged, I need to deploy a new version

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

Successfully merging a pull request may close this issue.

5 participants