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

TypeError: (0 , _reactCompat.createShallowRenderer) is not a function #1070

Closed
ashutosh1211 opened this issue Aug 15, 2017 · 1 comment
Closed

Comments

@ashutosh1211
Copy link

Using react 16 beta.

Stacktrace:
TypeError: (0 , _reactCompat.createShallowRenderer) is not a function
at new ShallowWrapper (node_modules\enzyme\build\ShallowWrapper.js:125:62)
at shallow (node_modules\enzyme\build\shallow.js:19:10)
at Context.

@ljharb
Copy link
Member

ljharb commented Aug 15, 2017

enzyme does not yet support React 16. #1007 was just merged, and v3 will be released soon, at which point you'll be able to use it with React 16.

@ljharb ljharb closed this as completed Aug 15, 2017
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

2 participants