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.

Error when running on production env

See original GitHub issue

Hello,

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:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
teleginzhenyacommented, Jan 22, 2019

@freddygymlib thanks will fix it, it is all about MacBook Pro 2017 keyboard 😦

1reaction
ScottMorsecommented, Feb 1, 2019

I am using it now in my Next app in production and it’s working! https://www.pymusician.com

Read more comments on GitHub >

github_iconTop Results From Across the Web

getting error while running production env in node js
Trying to run in production and getting this error. Tried finding a solution: killing all nodes or; deleteting node modules and re-installing.
Read more >
DebuggerEvents error in Production Environment - OutSystems
The running mode of the environment is "Production", so nobody is debbugging in that environment. The error is occuring for only one module,...
Read more >
Error "process is not defined" when accessing environment ...
Env var cannot be accessed - specifically, process is not defined. How can I configure the Remix Run project to successfully pull environment...
Read more >
Development Mode Error though environment was set to ...
In launchSettings.json file ASPNETCORE_ENVIRONMENT was set to "Production" mode. But after adding localization settings to startup file, ...
Read more >
Environment variables in Compose | Docker Documentation
When you run docker-compose up with this configuration, Compose looks for the POSTGRES_VERSION environment variable in the shell and substitutes its value ...
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