Skip to content
This repository has been archived by the owner on Aug 6, 2019. It is now read-only.

Enzyme Internal Error: unknown node with tag 14 #132

Closed
karolisgrinkevicius opened this issue Jul 18, 2018 · 10 comments
Closed

Enzyme Internal Error: unknown node with tag 14 #132

karolisgrinkevicius opened this issue Jul 18, 2018 · 10 comments

Comments

@karolisgrinkevicius
Copy link

Getting Enzyme Internal Error: unknown node with tag 14 where mount is used on cloned element node. For instance:

...
 mount(React.cloneElement(node))
...

Works fine on version 4.

@guidosreis
Copy link

I'm facing the same issue.
Did you find out a solution? Or simply downgraded to version 4?

@karolisgrinkevicius
Copy link
Author

I personally downgraded to 4 while this is being fixed.

@guidosreis
Copy link

@karolisgrinkevicius I did the same, thank you!

@bchenSyd
Copy link

got the same issue today. shallow is fine

import {mount} from 'enzyme';
import {Box } from 'grid-styled';
mount(<Box/>) ;// unknown node with tag 14

@karolisgrinkevicius
Copy link
Author

Is there any progress on this?

@ericberens
Copy link

Solved by: enzymejs/enzyme#1592

@karolisgrinkevicius
Copy link
Author

Still getting the same issue Enzyme Internal Error: unknown node with tag 14 with the following dependencies:

├─ enzyme@3.4.4
├─ grid-styled@5.0.2
├─ styled-components@3.3.3
└─ styled-system@3.0.2

@ericberens
Copy link

New versions of

enzyme-adapter-react-16
enzyme-adapter-react-16.3
enzyme-adapter-react-16.2
enzyme-adapter-react-16.1

need to be released to npm before this will work again.

@karolisgrinkevicius
Copy link
Author

@ericberens thanks, waiting forward for the release to be happened.

@karolisgrinkevicius
Copy link
Author

enzyme-adapter-react-16 v1.3.0 has fixed an error. Closing the issue.

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

No branches or pull requests

4 participants