Я создал хранилище https://github.com/chengtie/monaco-languageclient/tree/a0abcc87f5506862d88d82b2e73af7c55a22aef0, выполнив следующие действия:
- , разветвленный из TypeFox / monaco-languageclient
- скопированная папка
example
в exampleTie
- в
exampleTie/package.json
, изменено на "name": "node-exampleTie",
- , добавлено
"exampleTie"
в workspaces
в package.json
:
Однако yarn
во всей папке возвращено следующее:
$ yarn
yarn install v1.21.1
[1/4] ? Resolving packages...
success Already up-to-date.
$ lerna run prepare
lerna notice cli v3.16.4
lerna info Executing command in 4 packages: "yarn run prepare"
monaco-languageclient: yarn run v1.21.1
monaco-languageclient: warning monaco-languageclient@0.12.0: The engine "vscode" appears to be invalid.
monaco-languageclient: $ yarn run clean && yarn run compile
monaco-languageclient: warning monaco-languageclient@0.12.0: The engine "vscode" appears to be invalid.
monaco-languageclient: $ rimraf lib
monaco-languageclient: warning monaco-languageclient@0.12.0: The engine "vscode" appears to be invalid.
monaco-languageclient: $ tsc
monaco-languageclient: Done in 3.99s.
node-example: yarn run v1.21.1
node-exampleTie: yarn run v1.21.1
browser-example: yarn run v1.21.1
node-example: $ yarn run clean && yarn run build
node-exampleTie: $ yarn run clean && yarn run build
browser-example: $ yarn run clean && yarn run build
node-example: $ rimraf lib
node-exampleTie: $ rimraf lib
browser-example: $ rimraf lib
browser-example: $ yarn run compile && webpack && yarn run copy
node-example: $ yarn run compile && webpack && yarn run copy
node-exampleTie: $ yarn run compile && webpack && yarn run copy
browser-example: $ tsc
node-example: $ tsc
node-exampleTie: $ tsc
node-example: src/json-server.ts(251,44): error TS2345: Argument of type 'import("/Users/chengtie/Startup/ReactProjects/ocaml-lsp-monaco/monaco-languageclient/node_modules/vscode-json-languageservice/node_modules/vscode-languageserver-types/lib/umd/main").Diagnostic[]' is not assignable to parameter of type 'import("/Users/chengtie/Startup/ReactProjects/ocaml-lsp-monaco/monaco-languageclient/node_modules/vscode-languageserver-types/lib/umd/main").Diagnostic[]'.
node-example: Type 'import("/Users/chengtie/Startup/ReactProjects/ocaml-lsp-monaco/monaco-languageclient/node_modules/vscode-json-languageservice/node_modules/vscode-languageserver-types/lib/umd/main").Diagnostic' is not assignable to type 'import("/Users/chengtie/Startup/ReactProjects/ocaml-lsp-monaco/monaco-languageclient/node_modules/vscode-languageserver-types/lib/umd/main").Diagnostic'.
node-example: Types of property 'tags' are incompatible.
node-example: Type 'InsertTextFormat[] | undefined' is not assignable to type '1[] | undefined'.
node-example: Type 'InsertTextFormat[]' is not assignable to type '1[]'.
node-example: Type 'InsertTextFormat' is not assignable to type '1'.
node-example: Type '2' is not assignable to type '1'.
node-example: error Command failed with exit code 2.
node-example: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
node-example: error Command failed with exit code 2.
node-example: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
node-example: error Command failed with exit code 2.
node-example: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
lerna ERR! yarn run prepare exited 2 in 'node-example'
lerna WARN complete Waiting for 2 child processes to exit. CTRL-C to exit immediately.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Кто-нибудь знает в чем проблема?