Needs run bit install
twice in yarn2 project to prevent yarn commands throw error.
#4583
Labels
bit install
twice in yarn2 project to prevent yarn commands throw error.
#4583
In an empty project.
create
package.json
file/* package.json */
{
"name": "bittest",
"version": "0.1.0",
"private": true,
"scripts": {
"start": "echo"
},
"dependencies": {
"typescript": "^4.3.5"
}
}
run command
% yarn set version berry
edit
.yarnrc.yml
file/* .yarnrc.yml */
yarnPath: ".yarn/releases/yarn-berry.cjs"
nodeLinker: "node-modules"
run command
% bit init --harmony
edit
workspace.jsonc
file/* workspace.jsonc */
...
"packageManager": "teambit.dependencies/yarn",
...
run command
% bit install
% yarn start
Internal Error: typescript@patch:typescript@^4.3.5#builtin<compat/typescript>: This package doesn't seem to be present in your lockfile; try to make an install to update your resolutions
But when I run
bit install
twice, yarn command is work.The text was updated successfully, but these errors were encountered: