Error when running on production env
See original GitHub issueHello,
running the example https://github.com/zeit/next.js/tree/master/examples/with-next-page-transitions
on production env triggers an error:
TypeError: Cannot read property ‘isRequired’ of null at Object.<anonymous> (/home/freddy/Workspace/workspace-projects/workspace-together/with-next-page-transitions/node_modules/next-page-transitions/lib/PageTransition.js:300:37)
Which refers to this: line 300 - PageTransition.js
timeout: _PropTypes.timeoutsShape.isRequired,
When looking from the origin of the problem, I found this line on the react-transition-group dependency
var timeoutsShape = process.env.NODE_ENV !== 'production' ? _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.shape({ enter: _propTypes.default.number, exit: _propTypes.default.number }).isRequired]) : null;
Note: this problems does not appear on the 1.0.0-alpha.1 release because back then we had on PageTransition.js:
timeout: _PropTypes.timeoutsShape
Regards,
Freddy
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:9 (4 by maintainers)
Top GitHub Comments
@freddygymlib thanks will fix it, it is all about MacBook Pro 2017 keyboard 😦
I am using it now in my Next app in production and it’s working! https://www.pymusician.com