Error three id is not supported in this enviroment

im trying to use yarn add lit-ceramic-sdk from lit protocol docs but I get the error three id is not supported in this environment


> Blockquotewait  - compiling /_error (client and server)...
event - compiled client and server successfully in 3.5s (983 modules)
error - Error: ThreeIdConnect not supported in this enviroment
    at assertBrowser (/home/malik/Desktop/Password Manager/my-app/node_modules/lit-ceramic-sdk/node_modules/@3id/connect/dist/connect.cjs.development.js:905:11)
    at new ThreeIdConnect (/home/malik/Desktop/Password Manager/my-app/node_modules/lit-ceramic-sdk/node_modules/@3id/connect/dist/connect.cjs.development.js:928:5)
    at Object.<anonymous> (/home/malik/Desktop/Password Manager/my-app/node_modules/lit-ceramic-sdk/dist/wallet.js:46:19)
    at Module._compile (node:internal/modules/cjs/loader:1159:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
    at Module.load (node:internal/modules/cjs/loader:1037:32)
    at Module._load (node:internal/modules/cjs/loader:878:12)
    at Module.require (node:internal/modules/cjs/loader:1061:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object.<anonymous> (/home/malik/Desktop/Password Manager/my-app/node_modules/lit-ceramic-sdk/dist/ceramic.js:61:16) {
  page: '/'
}
````Preformatted text`

the 3id-connect package is designed for use in a web browser. Looks like you’re trying to use it in some other type of context. For non-browser setups you can use the 3id-did-provider package directly, but the setup may be a bit more complicated and you have to do your own key management.

CC @zfer to fact check the above answer

i am using it with next js, that should not give me an error right

MetaGame is using 3ID in a Next.js app. Here’s the code.