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.

npm run build,then the main.js throw an error

See original GitHub issue

If you are reporting a bug, please fill in below. Otherwise feel free to remove this template entirely.

Can you reproduce the problem with latest npm?

yes,and my npm is the latest. it works well when npm start but npm run build it throws an error likely Uncaught TypeError: Cannot read property 'length' of null at t.value (CommentList.jsx:17) at p._renderValidatedComponentWithoutOwnerOrContext (ReactCompositeComponent.js:799) at p._renderValidatedComponent (ReactCompositeComponent.js:822) at performInitialMount (ReactCompositeComponent.js:362) at p.mountComponent (ReactCompositeComponent.js:258) at Object.mountComponent (ReactReconciler.js:46) at h.mountChildren (ReactMultiChild.js:238) at h._createInitialChildren (ReactDOMComponent.js:697) at h.mountComponent (ReactDOMComponent.js:516)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
gaearoncommented, Apr 12, 2017

I’ll close because this doesn’t look like an issue with Create React App. You can get support for using React on StackOverflow and Reactiflux Discord channel.

0reactions
guoxiangwencommented, Apr 13, 2017

@viankakrisna thanks, that my code logic problem,thanks for answer~~

Read more comments on GitHub >

github_iconTop Results From Across the Web

Errors when running npm run build - node.js - Stack Overflow
Im trying to create my built folder for a react project, but I get this error when I run the command ...
Read more >
Common errors | npm Docs
Invalid JSON · Possible temporary npm registry glitch, or corrupted local server cache. Run npm cache clean and/or try again later. · This...
Read more >
Troubleshooting Node.js Deploys - Heroku Dev Center
Start with these simple steps to troubleshoot a build issue. ... If builds are not completing with an error when downloading Node, ...
Read more >
rollup.js
compile to a CommonJS module ('cjs') rollup main.js --file bundle.js --format ... in the generated modules --strictDeprecations Throw errors for deprecated ...
Read more >
Top 10 Most Common Node.js Developer Mistakes - Toptal
Node.js is free to run other parts of the code from the moment this ... with exception handling support, such as Java and...
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