Enzyme: "Cannot read property '_reactInternalFiber' of null" with storybook-addon-specifications

Created on 27 Sep 2019  路  3Comments  路  Source: enzymejs/enzyme

Current behavior

mount does not work. Cannot read property '_reactInternalFiber' of null

I am using storybook-addon-specifications for storybook.

image
I found the line 40 executed after line 52, which causes the inst null.

Expected behavior

No error.

Your environment

API

  • [ ] shallow
  • [x] mount
  • [ ] render

Version

| library | version
| ------------------- | -------
| enzyme | 3.10.0
| react | 16.9.0
| react-dom | 16.9.0
| react-test-renderer | 16.9.0
| adapter (below) | 1.14.0

Adapter

  • [x] enzyme-adapter-react-16
  • [ ] enzyme-adapter-react-16.3
  • [ ] enzyme-adapter-react-16.2
  • [ ] enzyme-adapter-react-16.1
  • [ ] enzyme-adapter-react-15
  • [ ] enzyme-adapter-react-15.4
  • [ ] enzyme-adapter-react-14
  • [ ] enzyme-adapter-react-13
  • [ ] enzyme-adapter-react-helper
  • [ ] others ( )
Need More Information

Most helpful comment

@ljharb I am also facing a similar issue, any update on this? Thanks.

All 3 comments

Are you confident about which version of React storybook is bundling up?

@ljharb I am also facing a similar issue, any update on this? Thanks.

@arwalokhandwala if you could provide any info for your setup that differs from the OP, that would be helpful.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ivanbtrujillo picture ivanbtrujillo  路  3Comments

amcmillan01 picture amcmillan01  路  3Comments

rexonms picture rexonms  路  3Comments

abe903 picture abe903  路  3Comments

blainekasten picture blainekasten  路  3Comments