apollo icon indicating copy to clipboard operation
apollo copied to clipboard

No code listing for src/containers/cart-item.js

Open robguinness opened this issue 6 years ago • 1 comments

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.

robguinness avatar Nov 21 '19 10:11 robguinness

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.

BerlinChan avatar Nov 27 '19 09:11 BerlinChan