error while install the package
LewdHuTao opened this issue · 9 comments
Hi, I think you guys forgot to change the version of the package while releasing this. Apparently when you try to install @discord/embedded-app-sdk
you will get an error like this:
Update: pnpm does install the package fine but not npm
npm ERR! code EUNSUPPORTEDPROTOCOL
npm ERR! Unsupported URL Type "workspace:": workspace:@discord/embedded-app-sdk@*
For anyone who gets this error, it can be easily fixed by changing the @discord/embedded-app-sdk
version to '^1.0.0' in the packages/client/package.json
file.
What was the command you typed?
Line 3 in 5cc3da8
https://www.npmjs.com/package/@discord/embedded-app-sdk?activeTab=versions
What was the command you typed?
Line 3 in 5cc3da8
https://www.npmjs.com/package/@discord/embedded-app-sdk?activeTab=versions
I tried to install the packages by doing npm i
causing it return that error and if you go to examples/discord-activity-starter/packages/client/package.json
you can see that the package is not yet updated to version 1.0.0
Same in the react-colyseus example!
However, when using pnpm it does install, tho... Only npm doesn't know what to do...
These projects consume this repo's root
@discord/embedded-app-sdk
directly via pnpm workspaces
Source: docs/local-sdk-development.md#L8
However, when using pnpm it does install, tho... Only npm doesn't know what to do...
Aah!
That's why I didn't succeed to reproduce that issue
Same in the react-colyseus example!
However, when using pnpm it does install, tho... Only npm doesn't know what to do...
Apparently all example folders will return the same error. I don't know if they should update the package version or let people use pnpm only.
Same in the react-colyseus example!
However, when using pnpm it does install, tho... Only npm doesn't know what to do...
Apparently all example folders will return the same error. I don't know if they should update the package version or let people use pnpm only.
I updated my comment, cause apparently it was mentioned:
These projects consume this repo's root
@discord/embedded-app-sdk
directly via pnpm workspaces
This worked with me:
"@discord/embedded-app-sdk": "^1.0.0"
I updated my comment
These projects consume this repo's root
@discord/embedded-app-sdk
directly via pnpm workspaces
It makes sense now why npm
does not work
The examples in this repo use pnpm
— you'll need to run pnpm install
before running the activity-starter example.
Outside of this repo you can install @discord/embedded-app-sdk
with whatever package manger you prefer.