DEV Community

Discussion on: Creating an App using React and Apollo Graphql

Collapse
 
miketwo profile image
Michael

Could be a n00b thing, but I had to add rm-shop-v1/ in front of both the documents: and generates: portion of codegen.yml to get it to generate properly.

Also, it seems like the more recent create react scripts have the service worker as optional? You may want the --template cra-template-pwa-typescript option.

Collapse
 
komyg profile image
Felipe Armoni

That's odd. Are you sure you were running the codegen inside the app root folder (the one that has the codegen.yml file)?

Also, thanks for the tip on the service worker.