Hello I am just starting my front-end React-Apollo app with pragmatic studio and when I went through the instructions which are the following, I ended up getting the following error:
**error I am getting : **
‘’'Failed to compile.
Module not found: Can’t resolve ‘graphql’ in ‘/Users/kimberlybrooke/Downloads/pragstudio-unpacked-graphql-code/getaways/frontend/node_modules/graphql-tag/lib’
Instructions I followed:
To start the frontend React app:
In a separate terminal session, change into the getaways/frontend directory:
Next, install the NPM package dependencies:
You’ll see some warnings from external packages. It’s nothing to worry about.
3. Now you’re ready to start the development server:
And now if you browse to http://localhost:3000/ you should see all the vacation places listed on the home page of the Getaways app!
I followed this course long time ago, when it came out.
I tried the source code… and it works.
You can now view getaways-react in the browser.
On Your Network: http://192.168.1.105:3000
Note that the development build is not optimized.
To create a production build, use npm run build.
I think it’s too much work if You try to update frontend to latest versions, because many packages are changing major version.
so… I got the source code, decompress, went to getaways/frontend, then npm i
for the backend, npm i --prefix assets, mix deps.get, mix compile, mix phx.server