Kibana: Error: Cannot find module '@kbn/config-schema'

Created on 15 May 2019  ยท  8Comments  ยท  Source: elastic/kibana

yarn version v1.16.0
node v10.15.2
npm 6.4.1

using 7.1 branch

Installed packages and when trying to start the server with npm start

[email protected] start /Users/prabhakarv/Documents/GitHub/kibana7.0/kibana
node --trace-warnings --trace-deprecation scripts/kibana --dev

Error: Cannot find module '@kbn/config-schema'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object. (/Users/prabhakarv/Documents/GitHub/kibana7.0/kibana/src/core/server/plugins/plugins_config.ts:21:25)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Module.m._compile (/Users/prabhakarv/Documents/GitHub/kibana7.0/kibana/node_modules/ts-node/src/index.ts:439:23)
at Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Object.require.extensions.(anonymous function) [as .ts] (/Users/prabhakarv/Documents/GitHub/kibana7.0/kibana/node_modules/ts-node/src/index.ts:442:12)
at Module.load (internal/modules/cjs/loader.js:599:32)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node --trace-warnings --trace-deprecation scripts/kibana --dev
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/prabhakarv/.npm/_logs/2019-05-15T08_04_11_515Z-debug.log
FDLMC1693:kibana prabhakarv$ npm i @kbn/config-schema
npm ERR! code E404
npm ERR! 404 Not Found: @kbn/config-schema@latest

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/prabhakarv/.npm/_logs/2019-05-15T08_06_18_164Z-debug.log

Most helpful comment

Installed packages

Have you run yarn kbn bootstrap? See https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#setting-up-your-development-environment

All 8 comments

When i try to build below error
FDLMC1693:kibana prabhakarv$ npm run-script build

[email protected] build /Users/prabhakarv/Documents/GitHub/kibana7.0/kibana
node scripts/build --all-platforms

Error: Cannot find module '@kbn/babel-code-parser'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object. (/Users/prabhakarv/Documents/GitHub/kibana7.0/kibana/src/dev/build/tasks/nodejs_modules/get_dependencies.js:20:1)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at loader (/Users/prabhakarv/Documents/GitHub/kibana7.0/kibana/node_modules/babel-register/lib/node.js:144:5)
at Object.require.extensions.(anonymous function) [as .js] (/Users/prabhakarv/Documents/GitHub/kibana7.0/kibana/node_modules/babel-register/lib/node.js:154:7)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object. (/Users/prabhakarv/Documents/GitHub/kibana7.0/kibana/src/dev/build/tasks/nodejs_modules/clean_client_modules_on_dll_task.js:21:1)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at loader (/Users/prabhakarv/Documents/GitHub/kibana7.0/kibana/node_modules/babel-register/lib/node.js:144:5)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: node scripts/build --all-platforms
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/prabhakarv/.npm/_logs/2019-05-15T08_17_06_634Z-debug.log

Installed packages

Have you run yarn kbn bootstrap? See https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#setting-up-your-development-environment

FATAL Error: Cannot find module '@kbn/interpreter/common'

server log [08:27:54.372] [fatal][root] { Error: Cannot find module '@kbn/interpreter/common'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object. (/Users/prabhakarv/Documents/GitHub/kibana7.0/kibana/x-pack/plugins/canvas/server/usage/collector.js:8:1)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at loader (/Users/prabhakarv/Documents/GitHub/kibana7.0/kibana/node_modules/babel-register/lib/node.js:144:5)
at Object.require.extensions.(anonymous function) [as .js] (/Users/prabhakarv/Documents/GitHub/kibana7.0/kibana/node_modules/babel-register/lib/node.js:154:7)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object. (/Users/prabhakarv/Documents/GitHub/kibana7.0/kibana/x-pack/plugins/canvas/server/usage/index.js:7:18)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at loader (/Users/prabhakarv/Documents/GitHub/kibana7.0/kibana/node_modules/babel-register/lib/node.js:144:5)
at Object.require.extensions.(anonymous function) [as .js] (/Users/prabhakarv/Documents/GitHub/kibana7.0/kibana/node_modules/babel-register/lib/node.js:154:7)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18) code: 'MODULE_NOT_FOUND' }

After doing kbn boostrap
FATAL Error: Cannot find module '@kbn/interpreter/common'

optimizer crashed with status code 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node --trace-warnings --trace-deprecation scripts/kibana --dev
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/prabhakarv/.npm/_logs/2019-05-15T08_27_54_803Z-debug.log

@vvvprabhakar as I said above, I'm pretty sure you didn't run yarn kbn bootstrap.

I'm closing this one assuming yarn kbn bootstrap solved the issue, but feel free to reopen if anything still doesn't work for you.

FDLMC1693:kibana prabhakarv$ yarn kbn bootstrap
yarn run v1.16.0
$ node scripts/kbn bootstrap
Running [bootstrap] command from [/Users/prabhakarv/Documents/GitHub/kibana7.0/kibana]:

Found [26] projects:

kibana
โ”œโ”€โ”€ packages
โ”‚ โ”œโ”€โ”€ elastic-datemath (@elastic/datemath)
โ”‚ โ”œโ”€โ”€ eslint-config-kibana (@elastic/eslint-config-kibana)
โ”‚ โ”œโ”€โ”€ kbn-babel-code-parser (@kbn/babel-code-parser)
โ”‚ โ”œโ”€โ”€ kbn-babel-preset (@kbn/babel-preset)
โ”‚ โ”œโ”€โ”€ kbn-config-schema (@kbn/config-schema)
โ”‚ โ”œโ”€โ”€ kbn-dev-utils (@kbn/dev-utils)
โ”‚ โ”œโ”€โ”€ kbn-es-query (@kbn/es-query)
โ”‚ โ”œโ”€โ”€ kbn-es (@kbn/es)
โ”‚ โ”œโ”€โ”€ kbn-eslint-import-resolver-kibana (@kbn/eslint-import-resolver-kibana)
โ”‚ โ”œโ”€โ”€ kbn-eslint-plugin-eslint (@kbn/eslint-plugin-eslint)
โ”‚ โ”œโ”€โ”€ kbn-expect (@kbn/expect)
โ”‚ โ”œโ”€โ”€ kbn-i18n (@kbn/i18n)
โ”‚ โ”œโ”€โ”€ kbn-interpreter (@kbn/interpreter)
โ”‚ โ”œโ”€โ”€ kbn-plugin-generator (@kbn/plugin-generator)
โ”‚ โ”œโ”€โ”€ kbn-plugin-helpers (@kbn/plugin-helpers)
โ”‚ โ”œโ”€โ”€ kbn-pm (@kbn/pm)
โ”‚ โ”œโ”€โ”€ kbn-test-subj-selector (@kbn/test-subj-selector)
โ”‚ โ”œโ”€โ”€ kbn-test (@kbn/test)
โ”‚ โ””โ”€โ”€ kbn-ui-framework (@kbn/ui-framework)
โ”œโ”€โ”€ test/plugin_functional/plugins
โ”‚ โ”œโ”€โ”€ kbn_tp_custom_visualizations
โ”‚ โ”œโ”€โ”€ kbn_tp_sample_app_plugin
โ”‚ โ”œโ”€โ”€ kbn_tp_sample_panel_action
โ”‚ โ””โ”€โ”€ kbn_tp_visualize_embedding
โ””โ”€โ”€ x-pack (x-pack)
โ””โ”€โ”€ plugins/infra

Running installs in topological order:

Installing dependencies in [kibana]:

$ node ./preinstall_check
[1/5] ๐Ÿ” Validating package.json...
[2/5] ๐Ÿ” Resolving packages...
success Already up-to-date.
Skipping workspace project: @elastic/datemath
Skipping workspace project: @elastic/eslint-config-kibana
Skipping workspace project: @kbn/babel-code-parser
Skipping workspace project: @kbn/babel-preset
Skipping workspace project: @kbn/config-schema
Skipping workspace project: @kbn/dev-utils
Skipping workspace project: @kbn/es-query
Skipping workspace project: @kbn/es
Skipping workspace project: @kbn/eslint-import-resolver-kibana
Skipping workspace project: @kbn/eslint-plugin-eslint
Skipping workspace project: @kbn/expect
Skipping workspace project: @kbn/i18n
Skipping workspace project: @kbn/interpreter
Skipping workspace project: @kbn/plugin-generator
Skipping workspace project: @kbn/plugin-helpers
Skipping workspace project: @kbn/pm
Skipping workspace project: @kbn/test-subj-selector
Skipping workspace project: @kbn/test
Skipping workspace project: @kbn/ui-framework
Skipping workspace project: kbn_tp_custom_visualizations
Skipping workspace project: kbn_tp_sample_app_plugin
Skipping workspace project: kbn_tp_sample_panel_action
Skipping workspace project: kbn_tp_visualize_embedding
Skipping workspace project: x-pack
Skipping workspace project: infra

Installs completed, linking package executables:

[x-pack] plugin-helpers -> ../packages/kbn-plugin-helpers/bin/plugin-helpers.js

Linking executables completed, running kbn:bootstrap scripts

@elastic/datemath: $ yarn build --quiet
@kbn/config-schema: $ yarn build
@elastic/datemath: $ babel src --out-dir target --copy-files --quiet
@kbn/config-schema: $ tsc
@kbn/babel-code-parser: $ yarn build --quiet
@kbn/dev-utils: $ yarn build --quiet
@kbn/babel-code-parser: $ babel src --out-dir target --quiet
@kbn/dev-utils: $ babel src --out-dir target --quiet
@kbn/es-query: $ node scripts/build --source-maps
@kbn/i18n: $ node scripts/build --source-maps
@kbn/test: $ yarn build
@kbn/i18n: info Deleting old output
@kbn/es-query: info Deleting old output
@kbn/i18n: info Starting babel and typescript
@kbn/i18n: info [babel:web ] > babel src --config-file /Users/prabhakarv/Documents/GitHub/kibana7.0/kibana/packages/kbn-i18n/babel.config.js --out-dir /Users/prabhakarv/Documents/GitHub/kibana7.0/kibana/packages/kbn-i18n/target/web --extensions .ts,.js,.tsx --quiet --source-map inline
@kbn/es-query: info Starting babel and typescript
@kbn/es-query: info [babel:public] > babel src --config-file /Users/prabhakarv/Documents/GitHub/kibana7.0/kibana/packages/kbn-es-query/babel.config.js --out-dir /Users/prabhakarv/Documents/GitHub/kibana7.0/kibana/packages/kbn-es-query/target/public --extensions .js,.ts,.tsx --quiet --source-map inline
@kbn/i18n: info [babel:node] > babel src --config-file /Users/prabhakarv/Documents/GitHub/kibana7.0/kibana/packages/kbn-i18n/babel.config.js --out-dir /Users/prabhakarv/Documents/GitHub/kibana7.0/kibana/packages/kbn-i18n/target/node --extensions .ts,.js,.tsx --quiet --source-map inline
@kbn/es-query: info [babel:server] > babel src --config-file /Users/prabhakarv/Documents/GitHub/kibana7.0/kibana/packages/kbn-es-query/babel.config.js --out-dir /Users/prabhakarv/Documents/GitHub/kibana7.0/kibana/packages/kbn-es-query/target/server --extensions .js,.ts,.tsx --quiet --source-map inline
@kbn/i18n: info [tsc ] > tsc --emitDeclarationOnly --declarationMap true
@kbn/test: $ babel src --out-dir target --delete-dir-on-start --extensions .ts,.js,.tsx
@kbn/test: WARNING: We noticed you're using the useBuiltIns option without declaring a core-js version. Currently, we assume version 2.x when no version is passed. Since this default version will likely change in future versions of Babel, we recommend explicitly setting the core-js version you are using via the corejs option.
@kbn/test: You should also be sure that the version you pass to the corejs option matches the version specified in your package.json's dependencies section. If it doesn't, you need to run one of the following commands:
@kbn/test: npm install --save core-js@2 npm install --save core-js@3
@kbn/test: yarn add core-js@2 yarn add core-js@3
@kbn/i18n: proc [babel:node] Successfully compiled 17 files with Babel.
@kbn/i18n: info [babel:node] exited with 0 after a few seconds
@kbn/test: Successfully compiled 21 files with Babel.
@kbn/i18n: proc [babel:web ] Successfully compiled 17 files with Babel.
@kbn/i18n: info [babel:web ] exited with 0 after a few seconds
@kbn/es-query: proc [babel:server] Successfully compiled 59 files with Babel.
@kbn/es-query: proc [babel:public] Successfully compiled 59 files with Babel.
@kbn/es-query: info [babel:server] exited with 0 after a few seconds
@kbn/es-query: info [babel:public] exited with 0 after a few seconds
@kbn/es-query: succ Complete
@kbn/i18n: proc [tsc ] ../../node_modules/@types/angular-mocks/node_modules/@types/angular/jqlite.d.ts(29,5): error TS2375: Duplicate number index signature.
@kbn/i18n: proc [tsc ] ../../node_modules/@types/angular-mocks/node_modules/@types/angular/jqlite.d.ts(809,5): error TS2717: Subsequent property declarations must have the same type. Property 'char' must be of type 'any', but here has type 'string'.
@kbn/i18n: proc [tsc ] ../../node_modules/@types/angular-mocks/node_modules/@types/angular/jqlite.d.ts(812,5): error TS2717: Subsequent property declarations must have the same type. Property 'key' must be of type 'any', but here has type 'string'.
@kbn/i18n: proc [tsc ] ../../node_modules/@types/angular-mocks/node_modules/@types/angular/jqlite.d.ts(828,5): error TS2374: Duplicate string index signature.
@kbn/i18n: proc [tsc ] ../../node_modules/@types/enzyme/index.d.ts(62,20): error TS2314: Generic type 'ReactElement

' requires 1 type argument(s).
@kbn/i18n: proc [tsc ] ../../node_modules/@types/enzyme/index.d.ts(62,35): error TS2314: Generic type 'ReactElement

' requires 1 type argument(s).
@kbn/i18n: proc [tsc ] ../../node_modules/@types/enzyme/index.d.ts(67,35): error TS2314: Generic type 'ReactElement

' requires 1 type argument(s).
@kbn/i18n: proc [tsc ] ../../node_modules/@types/enzyme/index.d.ts(67,50): error TS2314: Generic type 'ReactElement

' requires 1 type argument(s).
@kbn/i18n: proc [tsc ] ../../node_modules/@types/enzyme/index.d.ts(72,40): error TS2314: Generic type 'ReactElement

' requires 1 type argument(s).
@kbn/i18n: proc [tsc ] ../../node_modules/@types/enzyme/index.d.ts(72,57): error TS2314: Generic type 'ReactElement

' requires 1 type argument(s).
@kbn/i18n: proc [tsc ] ../../node_modules/@types/enzyme/index.d.ts(77,40): error TS2314: Generic type 'ReactElement

' requires 1 type argument(s).
@kbn/i18n: proc [tsc ] ../../node_modules/@types/enzyme/index.d.ts(77,57): error TS2314: Generic type 'ReactElement

' requires 1 type argument(s).
@kbn/i18n: proc [tsc ] ../../node_modules/@types/enzyme/index.d.ts(82,18): error TS2314: Generic type 'ReactElement

' requires 1 type argument(s).
@kbn/i18n: proc [tsc ] ../../node_modules/@types/enzyme/index.d.ts(87,26): error TS2314: Generic type 'ReactElement

' requires 1 type argument(s).
@kbn/i18n: proc [tsc ] ../../node_modules/@types/enzyme/index.d.ts(135,25): error TS2314: Generic type 'ReactElement

' requires 1 type argument(s).
@kbn/i18n: proc [tsc ] ../../node_modules/@types/enzyme/index.d.ts(140,16): error TS2314: Generic type 'ReactElement

' requires 1 type argument(s).
@kbn/i18n: proc [tsc ] ../../node_modules/@types/enzyme/index.d.ts(145,17): error TS2314: Generic type 'ReactElement

' requires 1 type argument(s).
@kbn/i18n: proc [tsc ] ../../node_modules/@types/enzyme/index.d.ts(150,19): error TS2314: Generic type 'ReactElement

' requires 1 type argument(s).
@kbn/i18n: proc [tsc ] ../../node_modules/@types/enzyme/index.d.ts(155,20): error TS2314: Generic type 'ReactElement

' requires 1 type argument(s).
@kbn/i18n: proc [tsc ] src/angular/directive.test.ts(36,22): error TS2339: Property 'mock' does not exist on type 'IAngularStatic'.
@kbn/i18n: proc [tsc ] src/angular/directive.test.ts(38,13): error TS2339: Property 'mock' does not exist on type 'IAngularStatic'.
@kbn/i18n: proc [tsc ] src/angular/filter.test.ts(39,22): error TS2339: Property 'mock' does not exist on type 'IAngularStatic'.
@kbn/i18n: proc [tsc ] src/angular/filter.test.ts(41,13): error TS2339: Property 'mock' does not exist on type 'IAngularStatic'.
@kbn/i18n: proc [tsc ] src/angular/filter.test.ts(41,25): error TS7006: Parameter 'i18nFilter' implicitly has an 'any' type.
@kbn/i18n: proc [tsc ] src/angular/provider.test.ts(33,13): error TS2339: Property 'mock' does not exist on type 'IAngularStatic'.
@kbn/i18n: proc [tsc ] src/angular/provider.test.ts(41,13): error TS2339: Property 'mock' does not exist on type 'IAngularStatic'.
@kbn/i18n: proc [tsc ] src/core/i18n.test.ts(890,7): error TS2740: Type 'SpyInstance': apply, call, bind, prototype, and 5 more.
@kbn/i18n: ERROR Error: [tsc ] exited with code 2
@kbn/i18n: at createCliError (/Users/prabhakarv/Documents/GitHub/kibana7.0/kibana/packages/kbn-dev-utils/target/proc_runner/errors.js:30:17)
@kbn/i18n: at MapSubscriber.Rx.fromEvent.pipe [as project] (/Users/prabhakarv/Documents/GitHub/kibana7.0/kibana/packages/kbn-dev-utils/target/proc_runner/proc.js:111:46)
@kbn/i18n: at MapSubscriber._next (/Users/prabhakarv/Documents/GitHub/kibana7.0/kibana/node_modules/rxjs/internal/operators/map.js:49:35)
@kbn/i18n: at MapSubscriber.Subscriber.next (/Users/prabhakarv/Documents/GitHub/kibana7.0/kibana/node_modules/rxjs/internal/Subscriber.js:66:18)
@kbn/i18n: at TakeSubscriber._next (/Users/prabhakarv/Documents/GitHub/kibana7.0/kibana/node_modules/rxjs/internal/operators/take.js:54:30)
@kbn/i18n: at TakeSubscriber.Subscriber.next (/Users/prabhakarv/Documents/GitHub/kibana7.0/kibana/node_modules/rxjs/internal/Subscriber.js:66:18)
@kbn/i18n: at ChildProcess.handler (/Users/prabhakarv/Documents/GitHub/kibana7.0/kibana/node_modules/rxjs/internal/observable/fromEvent.js:19:28)
@kbn/i18n: at ChildProcess.emit (events.js:194:15)
@kbn/i18n: at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
@kbn/i18n: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
โœ– @kbn/i18n: error Command failed with exit code 1.

[bootstrap] failed:

Error: Command failed: yarn run kbn:bootstrap
error Command failed with exit code 1.

$ node scripts/build --source-maps
info Deleting old output
info Starting babel and typescript
info [babel:web ] > babel src --config-file /Users/prabhakarv/Documents/GitHub/kibana7.0/kibana/packages/kbn-i18n/babel.config.js --out-dir /Users/prabhakarv/Documents/GitHub/kibana7.0/kibana/packages/kbn-i18n/target/web --extensions .ts,.js,.tsx --quiet --source-map inline
info [babel:node] > babel src --config-file /Users/prabhakarv/Documents/GitHub/kibana7.0/kibana/packages/kbn-i18n/babel.config.js --out-dir /Users/prabhakarv/Documents/GitHub/kibana7.0/kibana/packages/kbn-i18n/target/node --extensions .ts,.js,.tsx --quiet --source-map inline
info [tsc ] > tsc --emitDeclarationOnly --declarationMap true
proc [babel:node] Successfully compiled 17 files with Babel.
info [babel:node] exited with 0 after a few seconds
proc [babel:web ] Successfully compiled 17 files with Babel.
info [babel:web ] exited with 0 after a few seconds
proc [tsc ] ../../node_modules/@types/angular-mocks/node_modules/@types/angular/jqlite.d.ts(29,5): error TS2375: Duplicate number index signature.
proc [tsc ] ../../node_modules/@types/angular-mocks/node_modules/@types/angular/jqlite.d.ts(809,5): error TS2717: Subsequent property declarations must have the same type. Property 'char' must be of type 'any', but here has type 'string'.
proc [tsc ] ../../node_modules/@types/angular-mocks/node_modules/@types/angular/jqlite.d.ts(812,5): error TS2717: Subsequent property declarations must have the same type. Property 'key' must be of type 'any', but here has type 'string'.
proc [tsc ] ../../node_modules/@types/angular-mocks/node_modules/@types/angular/jqlite.d.ts(828,5): error TS2374: Duplicate string index signature.
proc [tsc ] ../../node_modules/@types/enzyme/index.d.ts(62,20): error TS2314: Generic type 'ReactElement

' requires 1 type argument(s).
proc [tsc ] ../../node_modules/@types/enzyme/index.d.ts(62,35): error TS2314: Generic type 'ReactElement

' requires 1 type argument(s).
proc [tsc ] ../../node_modules/@types/enzyme/index.d.ts(67,35): error TS2314: Generic type 'ReactElement

' requires 1 type argument(s).
proc [tsc ] ../../node_modules/@types/enzyme/index.d.ts(67,50): error TS2314: Generic type 'ReactElement

' requires 1 type argument(s).
proc [tsc ] ../../node_modules/@types/enzyme/index.d.ts(72,40): error TS2314: Generic type 'ReactElement

' requires 1 type argument(s).
proc [tsc ] ../../node_modules/@types/enzyme/index.d.ts(72,57): error TS2314: Generic type 'ReactElement

' requires 1 type argument(s).
proc [tsc ] ../../node_modules/@types/enzyme/index.d.ts(77,40): error TS2314: Generic type 'ReactElement

' requires 1 type argument(s).
proc [tsc ] ../../node_modules/@types/enzyme/index.d.ts(77,57): error TS2314: Generic type 'ReactElement

' requires 1 type argument(s).
proc [tsc ] ../../node_modules/@types/enzyme/index.d.ts(82,18): error TS2314: Generic type 'ReactElement

' requires 1 type argument(s).
proc [tsc ] ../../node_modules/@types/enzyme/index.d.ts(87,26): error TS2314: Generic type 'ReactElement

' requires 1 type argument(s).
proc [tsc ] ../../node_modules/@types/enzyme/index.d.ts(135,25): error TS2314: Generic type 'ReactElement

' requires 1 type argument(s).
proc [tsc ] ../../node_modules/@types/enzyme/index.d.ts(140,16): error TS2314: Generic type 'ReactElement

' requires 1 type argument(s).
proc [tsc ] ../../node_modules/@types/enzyme/index.d.ts(145,17): error TS2314: Generic type 'ReactElement

' requires 1 type argument(s).
proc [tsc ] ../../node_modules/@types/enzyme/index.d.ts(150,19): error TS2314: Generic type 'ReactElement

' requires 1 type argument(s).
proc [tsc ] ../../node_modules/@types/enzyme/index.d.ts(155,20): error TS2314: Generic type 'ReactElement

' requires 1 type argument(s).
proc [tsc ] src/angular/directive.test.ts(36,22): error TS2339: Property 'mock' does not exist on type 'IAngularStatic'.
proc [tsc ] src/angular/directive.test.ts(38,13): error TS2339: Property 'mock' does not exist on type 'IAngularStatic'.
proc [tsc ] src/angular/filter.test.ts(39,22): error TS2339: Property 'mock' does not exist on type 'IAngularStatic'.
proc [tsc ] src/angular/filter.test.ts(41,13): error TS2339: Property 'mock' does not exist on type 'IAngularStatic'.
proc [tsc ] src/angular/filter.test.ts(41,25): error TS7006: Parameter 'i18nFilter' implicitly has an 'any' type.
proc [tsc ] src/angular/provider.test.ts(33,13): error TS2339: Property 'mock' does not exist on type 'IAngularStatic'.
proc [tsc ] src/angular/provider.test.ts(41,13): error TS2339: Property 'mock' does not exist on type 'IAngularStatic'.
proc [tsc ] src/core/i18n.test.ts(890,7): error TS2740: Type 'SpyInstance': apply, call, bind, prototype, and 5 more.
ERROR Error: [tsc ] exited with code 2
at createCliError (/Users/prabhakarv/Documents/GitHub/kibana7.0/kibana/packages/kbn-dev-utils/target/proc_runner/errors.js:30:17)
at MapSubscriber.Rx.fromEvent.pipe [as project] (/Users/prabhakarv/Documents/GitHub/kibana7.0/kibana/packages/kbn-dev-utils/target/proc_runner/proc.js:111:46)
at MapSubscriber._next (/Users/prabhakarv/Documents/GitHub/kibana7.0/kibana/node_modules/rxjs/internal/operators/map.js:49:35)
at MapSubscriber.Subscriber.next (/Users/prabhakarv/Documents/GitHub/kibana7.0/kibana/node_modules/rxjs/internal/Subscriber.js:66:18)
at TakeSubscriber._next (/Users/prabhakarv/Documents/GitHub/kibana7.0/kibana/node_modules/rxjs/internal/operators/take.js:54:30)
at TakeSubscriber.Subscriber.next (/Users/prabhakarv/Documents/GitHub/kibana7.0/kibana/node_modules/rxjs/internal/Subscriber.js:66:18)
at ChildProcess.handler (/Users/prabhakarv/Documents/GitHub/kibana7.0/kibana/node_modules/rxjs/internal/observable/fromEvent.js:19:28)
at ChildProcess.emit (events.js:194:15)
at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

at makeError (/Users/prabhakarv/Documents/GitHub/kibana7.0/kibana/packages/kbn-pm/dist/index.js:14155:9)
at Promise.all.then.arr (/Users/prabhakarv/Documents/GitHub/kibana7.0/kibana/packages/kbn-pm/dist/index.js:14259:16)
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.

Probably something messed somewhere when you initially installed dependencies without bootstrapping them, try this (assuming there are no any local changes):

  1. yarn kbn clean
  2. yarn kbn bootstrap

If it doesn't work, try on the fresh checkout.

I had previously installed yarn using npm, and bootstrapping kibana was giving this error. Removing yarn completely and reinstalling through brew fixed the issue. HTH anyone in future

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tbragin picture tbragin  ยท  3Comments

ctindel picture ctindel  ยท  3Comments

bradvido picture bradvido  ยท  3Comments

socialmineruser1 picture socialmineruser1  ยท  3Comments

stacey-gammon picture stacey-gammon  ยท  3Comments