You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not really sure what this repo is, but I can't figure out why I'm getting an Invariant error when I'm trying to build my create-react-app project with Apollo dependencies. Any ideas?
$ react-scripts build && react-snapshot
Creating an optimized production build...
File sizes after gzip:
183.35 KB (+696 B) build/static/js/2.fec2c2d6.chunk.js
10.53 KB (+133 B) build/static/js/main.129c5f3b.chunk.js
762 B build/static/js/runtime~main.a8a9905a.js
373 B build/static/css/main.b2c2abb0.chunk.css
The project was built assuming it is hosted at /.
You can control this with the homepage field in your package.json.
The build folder is ready to be deployed.
You may serve it with a static server:
yarn global add serve
serve -s build
Find out more about deployment here:
https://bit.ly/CRA-deploy
🕷 Starting crawling http://localhost:61033/
client running env production
iconbtn function(e){return o.a.createElement(be,Object(de.pick)(e,["style","onClick","title"]),e.content?e.content:o.a.createElement(ge,{icon:e.icon}),e.text)}
Error: Uncaught [Invariant Violation: Invariant Violation: 1 (see https://github.com/apollographql/invariant-packages)]
at reportException (/Users/oahourai/Development/storyfork/web/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:58:24)
at processJavaScript (/Users/oahourai/Development/storyfork/web/node_modules/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js:130:7)
at HTMLScriptElementImpl._eval (/Users/oahourai/Development/storyfork/web/node_modules/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js:65:7)
at /Users/oahourai/Development/storyfork/web/node_modules/jsdom/lib/jsdom/browser/resource-loader.js:31:22
at Object.check (/Users/oahourai/Development/storyfork/web/node_modules/jsdom/lib/jsdom/living/nodes/Document-impl.js:89:11)
at Object.check (/Users/oahourai/Development/storyfork/web/node_modules/jsdom/lib/jsdom/living/nodes/Document-impl.js:92:23)
at /Users/oahourai/Development/storyfork/web/node_modules/jsdom/lib/jsdom/living/nodes/Document-impl.js:108:12
at wrappedEnqueued (/Users/oahourai/Development/storyfork/web/node_modules/jsdom/lib/jsdom/browser/resource-loader.js:255:16)
at Request.request [as _callback] (/Users/oahourai/Development/storyfork/web/node_modules/jsdom/lib/jsdom/browser/resource-loader.js:203:9)
at Request.self.callback (/Users/oahourai/Development/storyfork/web/node_modules/request/request.js:185:22) { Invariant Violation: Invariant Violation: 1 (see https://github.com/apollographql/invariant-packages)
at new t (http://localhost:61033/static/js/2.fec2c2d6.chunk.js:1:355286)
at http://localhost:61033/static/js/2.fec2c2d6.chunk.js:1:356406
at v (http://localhost:61033/static/js/2.fec2c2d6.chunk.js:1:356415)
at new t (http://localhost:61033/static/js/2.fec2c2d6.chunk.js:1:359389)
at Module.312 (http://localhost:61033/static/js/main.129c5f3b.chunk.js:1:31774)
at f (http://localhost:61033/:1:518)
at Object.184 (http://localhost:61033/static/js/main.129c5f3b.chunk.js:1:3999)
at f (http://localhost:61033/:1:518)
at a (http://localhost:61033/:1:387)
at Array.e [as push] (http://localhost:61033/:1:250) framesToPop: 1, name: 'Invariant Violation' }
🔥 'render' from react-snapshot was never called. Did you replace the call to ReactDOM.render()?
🕸 Finished crawling.
✨ Done in 28.70s.
The text was updated successfully, but these errors were encountered:
The error strings are sanitized in production to save (a lot of) bundle size, though it's possible track the error code (1 in this case) back to the corresponding invariant call in the source code (see the Error codes section of the README).
However, if the problem is reproducible in development, then the original error message will be preserved, so you don't have to do any digging.
I'm not really sure what this repo is, but I can't figure out why I'm getting an Invariant error when I'm trying to build my create-react-app project with Apollo dependencies. Any ideas?
From package.json
Error:
The text was updated successfully, but these errors were encountered: