Hey there! Thank you for starting your journey with us on Odyssey.
This is the topic to find help on the very first Odyssey course Lift-off part 1.
- APOLLO CLIENT SETUP
After including ApolloProvider getting the below error.
./node_modules/@apollo/client/core/index.js
"export âsetVerbosityâ (reexported as âsetLogVerbosityâ) was not found in âts-invariantâ
Kindly advice on this.
Cheers,
Anguram Shanmugam
Hi Anguram!
Iâd like to clarify the steps you took to get to this error. Did you install the packages with npm install graphql @apollo/client
inside the client
folder?
Could you also paste the code you have from your index.js
file? Iâd like to see how youâre using the ApolloProvider
component.
Thanks!
Glad to hear from you. Unfortunately Iâm AFK. The issue is with the presence of âStrictModeâ from React. After removal and restart itâs working.
But why this behaviour? I donât know
Anyways!
cheers,
Anguram Shanmugam
I wasnât able to reproduce the error on my end, following the lesson instructions and keeping React.StrictMode on, so Iâm not sure why you were getting that error! Feel free to post your code when youâre able and we can take a closer look
I just read an article about npm audit fix --force
. I just ran that now everthingâs fine. Use the below project link If you wanna see the code.
cheers,
Anguram Shanmugam
Hi Support Community - Iâm running VSCode on Ubuntu 20.04 LTS. I am unable to get beyond npm start | yarn start:
Logs below:
7 . The front-end app
From the client/
directory, run: npm start | yarn start
npm start
catstronauts-client-complete@1.0.0 start
react-scripts start
sh: 1: react-scripts: not found
yarn run v1.22.5
$ react-scripts start
/bin/sh: 1: react-scripts: not found
error Command failed with exit code 127.
$ npm install react-scripts
[sudo] password for m:
npm notice
npm notice New minor version of npm available! 7.16.0 â 7.17.0
npm notice Changelog: Release v7.17.0 ¡ npm/cli ¡ GitHub
npm notice Run npm install -g npm@7.17.0 to update!
npm notice
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: catstronauts-client-complete@1.0.0
npm ERR! Found: react@16.14.0
npm ERR! node_modules/react
npm ERR! react@â^16.13.1â from the root project
npm ERR! peer react@â>=16.8 || ^17.0.0â from framer-motion@4.1.17
npm ERR! node_modules/framer-motion
npm ERR! peer framer-motion@â>1.6â from @apollo/space-kit@7.21.0
npm ERR! node_modules/@apollo/space-kit
npm ERR! @apollo/space-kit@â^7.11.0â from the root project
npm ERR! 1 more (react-dom)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@â>16â from @apollo/space-kit@7.21.0
npm ERR! node_modules/@apollo/space-kit
npm ERR! @apollo/space-kit@â^7.11.0â from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /root/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-06-16T08_07_45_131Z-debug.log
Hi @weiss!
To confirm, have you ran npm install
in the client
directory before running npm start
?
Hi,
Yes, and I tried again.
/client$ npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: catstronauts-client-complete@1.0.0
npm ERR! Found: react@16.14.0
npm ERR! node_modules/react
npm ERR! react@â^16.13.1â from the root project
npm ERR! peer react@â>=16.8 || ^17.0.0â from framer-motion@4.1.17
npm ERR! node_modules/framer-motion
npm ERR! peer framer-motion@â>1.6â from @apollo/space-kit@7.21.0
npm ERR! node_modules/@apollo/space-kit
npm ERR! @apollo/space-kit@â^7.11.0â from the root project
npm ERR! 1 more (react-dom)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@â>16â from @apollo/space-kit@7.21.0
npm ERR! node_modules/@apollo/space-kit
npm ERR! @apollo/space-kit@â^7.11.0â from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /home/m/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/m/.npm/_logs/2021-06-16T19_56_27_863Z-debug.log
I made sure to remove any package lock.json file and tried but no success. All attempted in the /client directory.
Hi @MichelleMabuyo ,
Was hoping to get some feedback/response but i guess I can try to download the repo and try again. If that doesnât work, I guess Stack is my next lead.
Edit:
Got it working after i cloned the repo again.
Hello @weiss . Tried to reproduce on a VM with ubuntu and everything was working ok on my end. Not sure what happened . Glad you have it working now!
Hope you have fun with the course.
Thanks Raph. I see you two added two new lessons Part 2 and Part 3 earlier this week. Working through them and enjoying the tutorials very much.
Thanks @MichelleMabuyo . I think i tried yarn after i tried npm, so i got a warning/error saying i shouldnât use both. I went and cloned the repo again and everything worked smoothly afterwards.
Hi Support Community - Iâm at section 6. APOLLO STUDIO EXPLORER and I cannot access Apollo Sudio Explorer.
Iâm logged in with Github and the website keeps loading as shown on the screenshot.
I have tested with multiple browsers (Brave, Chrome, Firefox) with the same result.
Hello @DaVinciLord,
Safari and Brave can be difficult with Apollo Explorer. We need to connect to localhost, Studio is served from https, and localhost is usually from http, some browser donât allow mixed security network requests.
That said, youâve mentioned trying on firefox and chrome too, Iâve just tested it on both and that worked, so the issue might be something else.
Can you tell me more about the browser versions and the OS youâre using.
Could you have a look at the developer console as well, to see if any error message pops up too?
Thank you.
Hi @Raph,
I just retried with Chrome (version 91.0.4472.124) and my OS is Windows 10 Professional (version 2004, build 19041.804).
Here is what appears on my developer console.
Itâs as if the web page is reloading indefinetely.
Thanks for the details and for the screenshot.
Last check: could you try clearing both the application cache and cookies and login again.
If this has no effects Iâll then reach out to the Studio team and report the issue.
I cleared all application cache, data and cookies and I have the same problem.
In my local storage, I see the value of segmentio.***.inProgress
and segmentio.***.ack
updating each time the page reloads.
If I can provide any new information to help to resolve this bug, feel free to ask !
Thanks for your help.
Thanks for going through all that.
Iâll reach out to the Studio team and get back to you as soon as I have more info.
Hello @DaVinciLord. Studio team couldnât reproduce either⌠is this still happening on your end? If so, could you try signing up via the email flow (rather than github), to see if youâre experiencing the same issue? This will provide more info on where the problem might come from.