React: Cannot find module './ReactReconcileTransaction' from 'ReactShallowRenderer.js' in `react-test-renderer`

Created on 8 Apr 2017  路  4Comments  路  Source: facebook/react

Do you want to request a feature or report a bug?

Bug

What is the current behavior?

Cannot find module './ReactReconcileTransaction' from 'ReactShallowRenderer.js'

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net or similar (template: https://jsfiddle.net/84v837e9/).

$ yarn add --dev react-test-renderer
// Component.test.js

const ReactShallowRenderer = require('react-test-renderer/shallow') // Cannot find module error

What is the expected behavior?

That ReactReconcileTransaction module is included in react-test-renderer package.

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?

15.5.1


If this is something relatively simple, I wouldn't mind making my first PR to React if given a nudge in the right direction. I looked already in the grunt tasks for building the packages, but nothing stood out.

Bug

Most helpful comment

[email protected] just released with the fix!

All 4 comments

It does seem like something went wrong with packaging. Will need to take a closer look at this.

Should be fixed by #9375 based on my initial testing. We're making another release now~

[email protected] just released with the fix!

Thank you both for a quick fix!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zpao picture zpao  路  3Comments

Prinzhorn picture Prinzhorn  路  3Comments

zpao picture zpao  路  3Comments

UnbearableBear picture UnbearableBear  路  3Comments

hnordt picture hnordt  路  3Comments