question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enzyme Internal Error: unknown node with tag 14

See original GitHub issue

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

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

Update After grid-styled reverted to 4.1.1 seems to be working fine.

Versions

  • grid-styled 5.0.2 ☢️
  • styled-system 3.0.1
  • react 16.4.1
  • jest 23.4.1
  • enzyme 3.3.0
  • enzyme-adapter-react-16 1.1.1
  • enzyme-react-intl 2.0.0
  • enzyme-to-json 3.3.4

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:19 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
karolisgrinkeviciuscommented, Jul 30, 2018

I also took a try without cloning a node itself and passing it directly to mount but result is the same.

0reactions
ljharbcommented, Jul 9, 2020

@mockey-jockey enzyme is up to v3.11.0, and enzyme-adapter-react-16 is up to v1.15.2. Please update to the latest versions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

forwardRef: Enzyme Internal Error: unknown node with tag 14
Current behavior After update React to 16.3.0 version and use forwardRef, my tests is broken. Component that uses forwardRef now exports as: export...
Read more >
Enzyme Internal Error: unknown node with tag 15 using React ...
Using Jest for my tests, I just downloaded and installed React Boilerplate with Dandelion Template and configured Jest, when running npm ...
Read more >
forwardRef: Enzyme Internal Error: unknown node with tag 14
Current behavior. After update React to 16.3.0 version and use forwardRef , my tests is broken. Component that uses forwardRef now exports ...
Read more >
enzymejs/enzyme - Gitter
Hi, I am having an issue with getting enzyme to work in our react 16 app: Enzyme Internal Error: Enzyme expects an adapter...
Read more >
Unknown Node With Tag 15 Using React Boiler Plate - ADocLib
Fixed for me after update to versions below: Current behavior Gettting an error Enzyme Internal Error: unknown node with tag 0 Expected ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found