apollo
apollo copied to clipboard
No code listing for src/containers/cart-item.js
Unless I am somehow missing it, there is no code listing in the tutorial for client/src/containers/book-trips.js, and this causes a "Failed to compile" error when running the client app at the end of the tutorial.
Solution
Copy (final)final/client/src/containers/cart-item.js code to (start)start/client/src/containers/cart-item.js, so the app can continue run without the error.
Why
In tutorial section for src/containers/book-trips.js, we
import { GET_LAUNCH } from './cart-item';
But cart-item.js in start folder hasn't export GET_LAUNCH , which caused the error.
Only leave some boilerplate code in cart-item.js, so the initial demo can start up, but tutorial never mentioned this.