linaria icon indicating copy to clipboard operation
linaria copied to clipboard

Cannot Set Up Development Environment

Open knpwrs opened this issue 3 years ago • 0 comments

Environment

  • Linaria version: master
  • Node.js version: v17.3.1
  • Yarn version: 1.22.17
  • OS: macOS 12.1 (m1/arm64)

Description

When I clone this repo and run yarn bootstrap per the instructions in https://github.com/callstack/linaria/blob/master/CONTRIBUTING.md, I get the following output:

linaria on  master via  v17.3.1 took 3s
❯ yarn bootstrap
yarn run v1.22.17
$ yarn && yarn website install
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
warning Pattern ["@definitelytyped/typescript-versions@latest"] is trying to unpack in the same destination "/Users/knpwrs/Library/Caches/Yarn/v6/npm-@definitelytyped-typescript-versions-0.0.84-3cead40ca6131542609e8e3e621a23b8e72f7ddf-integrity/node_modules/@definitelytyped/typescript-versions" as pattern ["@definitelytyped/typescript-versions@^0.0.84","@definitelytyped/typescript-versions@^0.0.84","@definitelytyped/typescript-versions@^0.0.84"]. This could result in non-deterministic behavior, skipping.
[3/4] 🔗  Linking dependencies...
warning "@callstack/eslint-config > [email protected]" has incorrect peer dependency "eslint@^3 || ^4 || ^5 || ^6".
warning " > [email protected]" has incorrect peer dependency "typescript@^3.0.1".
warning " > @linaria/[email protected]" has unmet peer dependency "webpack@>=5".
[4/4] 🔨  Building fresh packages...
$ lerna-to-typescript-project-references --update && yarn lerna run prepare
*UPDATE* - @linaria/cli - Some dependencies didn't match. Writing 1 to tsconfig.json.
*UPDATE* - @linaria/esbuild - Some dependencies didn't match. Writing 1 to tsconfig.json.
*UPDATE* - @linaria/rollup - Some dependencies didn't match. Writing 1 to tsconfig.json.
*UPDATE* - @linaria/extractor - Some dependencies didn't match. Writing 1 to tsconfig.json.
*UPDATE* - @linaria/babel-preset - Some dependencies didn't match. Writing 1 to tsconfig.json.
*UPDATE* - @linaria/atomic - Some dependencies didn't match. Writing 1 to tsconfig.json.
*UPDATE* - @linaria/webpack4-loader - Some dependencies didn't match. Writing 1 to tsconfig.json.
*UPDATE* - @linaria/logger - Some dependencies didn't match. Writing 1 to tsconfig.json.
*UPDATE* - @linaria/server - Some dependencies didn't match. Writing 1 to tsconfig.json.
*UPDATE* - @linaria/shaker - Some dependencies didn't match. Writing 1 to tsconfig.json.
*UPDATE* - @linaria/utils - Some dependencies didn't match. Writing 1 to tsconfig.json.
*UPDATE* - @linaria/webpack-loader - Some dependencies didn't match. Writing 1 to tsconfig.json.
*UPDATE* - @linaria/webpack5-loader - Some dependencies didn't match. Writing 1 to tsconfig.json.
*UPDATE* - @linaria/core - Some dependencies didn't match. Writing 1 to tsconfig.json.
*UPDATE* - linaria - Some dependencies didn't match. Writing 1 to tsconfig.json.
@linaria/babel-plugin-interop - 0 dependencies found.
*UPDATE* - @linaria/stylelint - Some dependencies didn't match. Writing 1 to tsconfig.json.
*UPDATE* - @linaria/preeval - Some dependencies didn't match. Writing 1 to tsconfig.json.
*UPDATE* - @linaria/react - Some dependencies didn't match. Writing 1 to tsconfig.json.
$ /Users/knpwrs/Downloads/linaria/node_modules/.bin/lerna run prepare
lerna notice cli v3.22.1
lerna info Executing command in 18 packages: "yarn run prepare"
lerna ERR! yarn run prepare exited 1 in '@linaria/utils'
lerna ERR! yarn run prepare stdout:
$ yarn build && yarn build:declarations
$ yarn build:lib && yarn build:esm
$ cross-env NODE_ENV=legacy babel src --out-dir lib --extensions '.js,.jsx,.ts,.tsx' --source-maps --delete-dir-on-start
Successfully compiled 3 files with Babel (188ms).
$ babel src --out-dir esm --extensions '.js,.jsx,.ts,.tsx' --source-maps --delete-dir-on-start
Successfully compiled 3 files with Babel (112ms).
$ tsc --emitDeclarationOnly --outDir types
tsconfig.json(4,18): error TS6377: Cannot write file '/Users/knpwrs/Downloads/linaria/packages/utils/tsconfig.tsbuildinfo' because it will overwrite '.tsbuildinfo' file generated by referenced project '/Users/knpwrs/Downloads/linaria/packages/utils'
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

lerna ERR! yarn run prepare stderr:
error Command failed with exit code 1.
error Command failed with exit code 1.

lerna ERR! yarn run prepare exited 1 in '@linaria/utils'
lerna WARN complete Waiting for 2 child processes to exit. CTRL-C to exit immediately.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
zsh: exit 1     yarn bootstrap

knpwrs avatar Mar 09 '22 16:03 knpwrs