Closed shubham-web closed 3 years ago
@shubham-web This works fine for me tho
Can you reproduce and send a link?
Slightly Different Approach : CodeSandbox
Namaste Deepankar (@Deep-Codes), Here you go - CodeSandBox I'm using the latest version of packages (including react).
Namaste Deepankar (@Deep-Codes), Here you go - CodeSandBox I'm using the latest version of packages (including react).
Works on the CodeSandBox and Locally Too
🤔
Now it's working yeah. @geist-ui/react package is recently updated.
Now when I run npm ls react
The version of react in geist's modules is the updated one -
Maybe had has something to do with it.
Btw Thanks for your help.
Just as a note, I'm facing the same issue when trying to start a new Next.js-project with geist-ui. I'm using Node 12.20.0. Should I open a new issue for it?
Edit: downgraded React to 16.14.0
for now, which is the simplest solution at the moment.
@flaming-codes i had done this before here's a Code Sandbox Link try it out if it doesn't work open a new issue but do provide a Reproduction to it.
Not reproducible in CodeSandbox and on another machine of mine. Therefore it seems to be problem with my local installation / project setup.
I'm facing the same issue with node v15.12.0
when I'm starting a new Next.js project with geist-ui. @flaming-codes did you figure out any issues on your local installation that might have been the problem? I also just downgraded to React 16.14.0
for now.
@joshuanianji What I've done:
1.tried to install geist-ui with Node 12.20.x and NPM 7.x, which didn't work (also tried to use npm-shrinkwrap and manually override the peer-dep, with no success)
Note that I used nvm
on both machines and also tried the install with Node 10.x on my first device initially, but that didn't work. Hope this helps.
Awesome, it worked for me. Thanks!
I have a question in my project with React 17.2 , Does geist-ui can't work in this environment?
Bug report 🐞
Version & Environment
geist-ui/react
: 2.1.4next
: 10.0.9,styled-components
: 5.2.1Expected Behaviour
I want to use styled-components for custom elements and for others @geist-ui/react but it's giving issues while setting up.
According to guide on server render the _document.js and _app.js file has to be changed as shown. But when styled-components package is imported which also requires _document.js and _app.js files to be changed. The conflict happens.
Actual results (or Errors)
It's throwing an error saying "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: ..."
Here's my
_document.js
and
_app.js
.babelrc
Upon running
npm ls react
the version it shows for geist is not the latest, Not sure if it has any connection with this issue but sharing it here.