Closed Poem7200 closed 1 week ago
Having the same issue. Seems to have been introduced in the latest release. @Poem7200 I suggest using exact versions for now.
Having the same issue. Seems to have been introduced in the latest release. @Poem7200 I suggest using exact versions for now.
Do you have any idea which exact version to use?
@Poem7200 should be fine with any version other than the latest one.
@Poem7200 should be fine with any version other than the latest one.
I've tried two methods:
@radix-ui/react-slot
update to 1.1.0
, and when trying npm ls @radix-ui/react-slot
, all related dependencies all use version 1.1.0, but still don't work when running project and opening browser@radix-ui/react-slot@1.1.0
, it's strange and I think maybe author create some destructive upgradeI have no idea about this issue……
@Poem7200 are you using exact versions? For example, in your package.json
remove the ^
from the dependencies like so: @radix-ui/react-slot: "1.1.0"
instead of @radix-ui/react-slot: "^1.1.0"
. You can verify this by checking your yarn.lock
or package-lock.json
don't reference the latest version.
This is obviously just to unblock you, but essentially someone would have to look into this.
@Poem7200 are you using exact versions? For example, in your
package.json
remove the^
from the dependencies like so:@radix-ui/react-slot: "1.1.0"
instead of@radix-ui/react-slot: "^1.1.0"
. You can verify this by checking youryarn.lock
orpackage-lock.json
don't reference the latest version.
yes I removed ^
and use versions listed above
@Poem7200 check your package-lock.json
you most likely have the latest release referenced.
@Poem7200 check your
package-lock.json
you most likely have the latest release referenced.
actually each time I tried to reinstall dependencies, I clean node_modules
and package-lock.json
We had upgraded compilation targets to ES2020 in a recent release, and your Webpack setup seems to trip over the nullish coalescing operator, which has been supported across the board for a few years already.
You'll need to either upgrade your dev toolchain to support the modern syntax, or downgrade Radix to the previous versions. (And pin deps to exact versions).
Bug report
Current Behavior
In my project installed @radix-ui, 5 hours before I tried to reinstall dependencies. When running project, everything seems good, but when trying to running project in browser, here comes error listed below
Expected behavior
Running in browser successfully
Reproducible example
CodeSandbox Template
Suggested solution
Additional context
Your environment