npm run build,then the main.js throw an error
See original GitHub issueIf 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:
- Created 6 years ago
- Comments:10 (6 by maintainers)
Top GitHub Comments
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.
@viankakrisna thanks, that my code logic problem,thanks for answer~~