Workspace protocol error
I got this error when package.json include dependencies with workspaces protocol after running the command:
yarn prod-install /usr/src/build
"dependencies": { "@my/core": "workspace:*" }
Setting up production directory
➤ YN0000: └ Completed
➤ YN0000: ┌ Installing production version
➤ YN0000: │ ┌ Modifying original install state
➤ YN0000: │ └ Completed
➤ YN0000: │ ┌ Resolution step
➤ YN0001: │ │ Error: @my/core@workspaces:* isn't supported by any available resolver
at pd.getResolverByDescriptor (/root/.node/corepack/yarn/3.1.1/yarn.js:432:5658)
at pd.bindDescriptor (/root/.node/corepack/yarn/3.1.1/yarn.js:432:5047)
at I (/root/.node/corepack/yarn/3.1.1/yarn.js:441:6932)
at async Promise.all (index 0)
at async Ke.resolveEverything (/root/.node/corepack/yarn/3.1.1/yarn.js:441:8197)
at async /root/.node/corepack/yarn/3.1.1/yarn.js:444:2138
at async Fe.startTimerPromise (/root/.node/corepack/yarn/3.1.1/yarn.js:412:3730)
at async Ke.install (/root/.node/corepack/yarn/3.1.1/yarn.js:444:2077)
at async /srv/project/.yarn/plugins/@yarnpkg/plugin-production-install.cjs:152:5123
at async Fe.startTimerPromise (/root/.node/corepack/yarn/3.1.1/yarn.js:412:3730)
Edited by Віталій Колодєєв