Conversation
|
Pinging @elastic/kibana-operations (Team:Operations) |
|
Pinging @elastic/kibana-platform (Team:Platform) |
Bamieh
left a comment
There was a problem hiding this comment.
kbn-analytics package babel version bump lgtm
afharo
left a comment
There was a problem hiding this comment.
I'm getting errors when bootstrapping it:
succ [@elastic/datemath] cache up to date
succ [@kbn/config-schema] cache up to date
succ [@kbn/utility-types] cache up to date
succ [@kbn/dev-utils] cache up to date
@kbn/babel-code-parser: $ yarn build --quiet
@kbn/babel-code-parser: $ babel src --out-dir target --quiet
✖ @kbn/babel-code-parser: { Error: [BABEL] /Users/afharo/Developer/kibana/packages/kbn-babel-code-parser/src/can_require.js: Cannot find module 'lodash/clone'\n at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)\n at Function.Module._load (internal/modules/cjs/loader.js:562:25)\n at Module.require (internal/modules/cjs/loader.js:692:17)\n at require (internal/modules/cjs/helpers.js:25:18)\n at Object.<anonymous> (/Users/afharo/Developer/kibana/node_modules/@babel/plugin-transform-typescript/node_modules/@babel/types/lib/builders/builder.js:8:37)\n at Module._compile (internal/modules/cjs/loader.js:778:30)\n at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)\n at Module.load (internal/modules/cjs/loader.js:653:32)\n at tryModuleLoad (internal/modules/cjs/loader.js:593:12)\n at Function.Module._load (internal/modules/cjs/loader.js:585:3) code: 'MODULE_NOT_FOUND' }
@kbn/babel-code-parser: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
✖ @kbn/babel-code-parser: error Command failed with exit code 1.
@kbn/babel-code-parser: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
✖ @kbn/babel-code-parser: error Command failed with exit code 1.
[bootstrap] failed:
Error: Command failed with exit code 1: yarn run kbn:bootstrap
{ Error: [BABEL] /Users/afharo/Developer/kibana/packages/kbn-babel-code-parser/src/can_require.js: Cannot find module 'lodash/clone'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object.<anonymous> (/Users/afharo/Developer/kibana/node_modules/@babel/plugin-transform-typescript/node_modules/@babel/types/lib/builders/builder.js:8:37)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3) code: 'MODULE_NOT_FOUND' }
error Command failed with exit code 1.
error Command failed with exit code 1.
$ yarn build --quiet
$ babel src --out-dir target --quiet
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.
at makeError (/Users/afharo/Developer/kibana/packages/kbn-pm/dist/index.js:33441:11)
at handlePromise (/Users/afharo/Developer/kibana/packages/kbn-pm/dist/index.js:32377:26)
at process._tickCallback (internal/process/next_tick.js:68:7)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
➜ kibana git:(bump-babel)
packages/kbn-pm/dist/index.js
Outdated
| @@ -47554,7 +47554,7 @@ __webpack_require__.r(__webpack_exports__); | |||
| /* harmony import */ var _scripts__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(562); | |||
There was a problem hiding this comment.
isn't it interesting the dist/ dir is pushed to GitHub?
Unrelated to this PR. Just adding a heads up to @elastic/kibana-operations 🤔
There was a problem hiding this comment.
kbn/pm is used to install dependencies with kbn bootstrap before any node module is installed, so it has to bundle the node_modules it needs in a file that git can put in place, which is why it's committed to the repo.
|
@afharo Could you run |
cleaning first did the trick |
yarn, why do you like to make me sad |
spalger
left a comment
There was a problem hiding this comment.
LGTM, merged master and updated the transitive @babel/* deps in yarn.lock too so a clean shouldn't be necessary anymore.
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
* bump babel version * build kbm-pm * refresh transitive @babel/* versions to kick yarn into shape * update kbn/pm dist Co-authored-by: spalger <spalger@users.noreply.github.com>
* bump up babel version (#61037) * bump babel version * build kbm-pm * refresh transitive @babel/* versions to kick yarn into shape * update kbn/pm dist Co-authored-by: spalger <spalger@users.noreply.github.com> * stop using deprecated source-map option Co-authored-by: spalger <spalger@users.noreply.github.com>
Summary
A prerequisite for TypeScript update #57774
I didn't add
onlyRemoveTypeImportswhich should be done in ^^^more details babel/babel#11173, babel/babel#10981, babel/babel#11171
Testing locally might require
yarn kbn clean