Polymer / tools

Polymer Tools Monorepo
BSD 3-Clause "New" or "Revised" License
430 stars 200 forks source link

[polymer-editor-service] Running yarn build on monorepo fails #3311

Open moderndeveloperllc opened 5 years ago

moderndeveloperllc commented 5 years ago

yarn: 1.12.3

Running commands:

yarn install
yarn bootstrap
yarn build

Last command fails in polymer-editor-service:

polymer-editor-service: > polymer-editor-service@2.2.2 build /Users/XXXXXX/Sites/tools/packages/editor-service
polymer-editor-service: > tsc && npm run lint
polymer-editor-service: src/test/util.ts:21:588 - error TS2305: Module '"../../../../../../../../Users/XXXXXXX/Sites/tools/packages/editor-service/node_modules/vscode-languageserver/lib/main"' has no exported member 'LocationLink'.
polymer-editor-service: 21 import {ClientCapabilities, CodeLens, CodeLensParams, CodeLensRequest, CompletionList, CompletionRequest, createConnection, Definition, Diagnostic, DidChangeConfigurationNotification, DidChangeConfigurationParams, DidChangeTextDocumentNotification, DidChangeTextDocumentParams, DidChangeWatchedFilesNotification, DidChangeWatchedFilesParams, DidCloseTextDocumentNotification, DidCloseTextDocumentParams, DidOpenTextDocumentNotification, DidOpenTextDocumentParams, DocumentSymbolParams, DocumentSymbolRequest, FileChangeType, Hover, HoverRequest, IConnection, InitializeParams, Location, LocationLink, PublishDiagnosticsNotification, PublishDiagnosticsParams, ReferenceParams, ReferencesRequest, SymbolInformation, TextDocumentPositionParams, TextDocuments, WorkspaceSymbolParams, WorkspaceSymbolRequest} from 'vscode-languageserver';
polymer-editor-service:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ~~~~~~~~~~~~
polymer-editor-service: Found 1 error.
polymer-editor-service: npm ERR! code ELIFECYCLE
polymer-editor-service: npm ERR! errno 2
polymer-editor-service: npm ERR! polymer-editor-service@2.2.2 build: `tsc && npm run lint`
polymer-editor-service: npm ERR! Exit status 2
polymer-editor-service: npm ERR! 
polymer-editor-service: npm ERR! Failed at the polymer-editor-service@2.2.2 build script.
polymer-editor-service: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
polymer-editor-service: npm ERR! A complete log of this run can be found in:
polymer-editor-service: npm ERR!     /Users/XXXXXX/.npm/_logs/2019-01-04T23_54_44_362Z-debug.log
lerna ERR! npm run build exited 2 in 'polymer-editor-service'
lerna WARN complete Waiting for 1 child process to exit. CTRL-C to exit immediately.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

The content of the mentioned log file:

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/Cellar/node@8/8.15.0/bin/node',
1 verbose cli   '/usr/local/Cellar/node@8/8.15.0/bin/npm',
1 verbose cli   'run',
1 verbose cli   'build' ]
2 info using npm@6.4.1
3 info using node@v8.15.0
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle polymer-editor-service@2.2.2~prebuild: polymer-editor-service@2.2.2
6 info lifecycle polymer-editor-service@2.2.2~build: polymer-editor-service@2.2.2
7 verbose lifecycle polymer-editor-service@2.2.2~build: unsafe-perm in lifecycle true
8 verbose lifecycle polymer-editor-service@2.2.2~build: PATH: /usr/local/Cellar/node@8/8.15.0/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/XXXXXX/Sites/tools/packages/editor-service/node_modules/.bin:/Users/XXXXXX/Sites/tools/packages/editor-service/node_modules/.bin:/Users/XXXXXX/Sites/tools/packages/node_modules/.bin:/Users/XXXXXX/Sites/tools/node_modules/.bin:/Users/XXXXXX/Sites/node_modules/.bin:/Users/XXXXXX/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/usr/local/Cellar/node@8/8.15.0/bin:/var/folders/43/qkzztgwn7cnf4dx94gtwtc300000gn/T/yarn--1546646048596-0.8684558944007039:/Users/XXXXXX/Sites/tools/node_modules/.bin:/Users/XXXXXX/.config/yarn/link/node_modules/.bin:/Users/XXXXXX/Sites/tools/node_modules/.bin:/Users/XXXXXX/.config/yarn/link/node_modules/.bin:/usr/local/Cellar/node@8/8.15.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/Cellar/node@8/8.15.0/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/Cellar/node@8/8.15.0/bin/node_modules/npm/bin/node-gyp-bin:/usr/local/Cellar/node@8/8.15.0/bin:/usr/local/opt/node@8/bin:/usr/local/opt/openssl/bin:/usr/local/sbin:/usr/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/MacGPG2/bin
9 verbose lifecycle polymer-editor-service@2.2.2~build: CWD: /Users/XXXXXX/Sites/tools/packages/editor-service
10 silly lifecycle polymer-editor-service@2.2.2~build: Args: [ '-c', 'tsc && npm run lint' ]
11 silly lifecycle polymer-editor-service@2.2.2~build: Returned: code: 2  signal: null
12 info lifecycle polymer-editor-service@2.2.2~build: Failed to exec build script
13 verbose stack Error: polymer-editor-service@2.2.2 build: `tsc && npm run lint`
13 verbose stack Exit status 2
13 verbose stack     at EventEmitter.<anonymous> (/usr/local/Cellar/node@8/8.15.0/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
13 verbose stack     at emitTwo (events.js:126:13)
13 verbose stack     at EventEmitter.emit (events.js:214:7)
13 verbose stack     at ChildProcess.<anonymous> (/usr/local/Cellar/node@8/8.15.0/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack     at emitTwo (events.js:126:13)
13 verbose stack     at ChildProcess.emit (events.js:214:7)
13 verbose stack     at maybeClose (internal/child_process.js:915:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
14 verbose pkgid polymer-editor-service@2.2.2
15 verbose cwd /Users/XXXXXX/Sites/tools/packages/editor-service
16 verbose Darwin 18.2.0
17 verbose argv "/usr/local/Cellar/node@8/8.15.0/bin/node" "/usr/local/Cellar/node@8/8.15.0/bin/npm" "run" "build"
18 verbose node v8.15.0
19 verbose npm  v6.4.1
20 error code ELIFECYCLE
21 error errno 2
22 error polymer-editor-service@2.2.2 build: `tsc && npm run lint`
22 error Exit status 2
23 error Failed at the polymer-editor-service@2.2.2 build script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 2, true ]
stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.