Plugin root dir issues

I am developing a plugin for 8.1 and am having trouble setting up the tsconfig.json

I am refencing an interface at /src/plugins/discover/public/application/doc_views_types and getting this error

'/home/user/Desktop/kibana/src/plugins/dashboard/public/application/index.ts' is not under 'rootDir' '/home/user/Desktop/kibana/plugins/spitting_alpaca'. 'rootDir' is expected to contain all source files.",

My tsconfig looks like this

  "extends": "../../tsconfig.json",
  "compilerOptions": {
    "outDir": "./target",
    "skipLibCheck": true,
    "sourceMap": true
  "include": [
  "exclude": [],
  "references": [
    { "path": "../../src/core/tsconfig.json" },
    { "path": "../../src/plugins/usage_collection/tsconfig.json" },
    { "path": "../../x-pack/plugins/reporting/tsconfig.json" },

How to i link these external resource to my plugin?

Do i need to make make a path refence for every utility i use?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.