Closed ngmisl closed 1 year ago
We'll need more details on this i.e. how did you set up the example, did you change anything etc. Also did you follow https://github.com/WalletConnect/web3modal/blob/V2/.github/docs/development.md
Download and yarn installed. Setup a dot env
Just pulled fresh repo for V2 branch and had no issues. Did you run yarn dev
and yarn dev:react
in separate terminal tabs? Also check if you are using yarn v1
I also got the same error.
@leoanhvig I noticed you are cd'ing into examples folder to execute commands, ensure you do this
yarn install; yarn build; yarn dev
from the root of the monorepoyarn dev:react
in a separate terminal window from the root of the monorepoyarn dev
only starts packager for the monorepo, you need to execute separate dev commands (in this case react) for each example afterwards.
i pulled back the repo again, followed the steps you instructed but when i run yarn build it still has the error, run yarn dev:react it keeps giving the css error as above
Really strange, will look into this once we release 2.1, but this same setup is ran by our devs locally and on our CI's. Did you by any chance modify the examples somehow, or all of this is fresh from the github repo?
I just added the .env.local file like the following and didn't modify any of the repo's files
I also followed the steps you mentioned without making any changes in the code and I got the same error
@leoanhvig @flopez7 @ngmisl what are your node / yarn versions? And are you also setting up env file in other examples (react-standalone)?
@0xAsimetriq Standalone worked for me. I'm using node v18.12.1 and yarn 1.22.19
A very related issue here with examples.
I tested examples/react
and examples/react-standalone
.
Steps to reproduce:
examples/react
or examples/react-standalone
yarn install
yarn dev
Specs:
Related with https://github.com/WalletConnect/web3modal/issues/828#issuecomment-1384940716
@0xAsimetriq
i have just run react-standalone and got the same error
Just in case, but which browsers are you running this in, do they support web components?
@0xAsimetriq Yeah, it's supported by all modern browsers: https://caniuse.com/?search=web%20components
This issue is not related to browser compatibility.
I got the same error
i have just run react-standalone and got the same error too
@SeongHo-Won DO you mean nextjs-standalone?
Also could you please outline which steps you performed before getting that error (the more details the better 🙏 )
Hello, Get the same error to. My step is: Pull the github, navigate in examples/nextJS folder then
My node version: v18.14.0 Then got this error :
same error
After several attempts of trying to recreate the issue, we were not able to, so will be closing this.
However, I recorded a video of me getting our lab example going from the scratch, I hope it can help (basically same flow for any other example).
In the video I
.env.local
file with my project id to exampleyarn dev
in first terminal window to build all packages in watch modeyarn dev:lab
to run laboratory example in a separate terminal windowRemember, all of these commands are ran from a monorepo root. In your own apps you can just reference the examples, you don't need to compile monorepo since in your case dependencies will be installed from npm not local.
https://user-images.githubusercontent.com/3154053/225848425-8b999662-c169-4e42-8329-8820a7e40d70.mov
getting a
Unhandled Runtime Error TypeError: Failed to set the 'adoptedStyleSheets' property on 'ShadowRoot': Failed to convert value to 'CSSStyleSheet'.