Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failed with error TS2532: Object is possibly 'undefined' #127

Open
irumman opened this issue Sep 28, 2020 · 0 comments
Open

Build failed with error TS2532: Object is possibly 'undefined' #127

irumman opened this issue Sep 28, 2020 · 0 comments

Comments

@irumman
Copy link

irumman commented Sep 28, 2020

I am trying to build this plugin from source using

yarn dev

and it is failing. I am using Grafana 7.2

ERROR in grafana/data/plugins/natel-discrete-panel/src/module.ts
  ERROR in grafana/data/plugins/natel-discrete-panel/src/module.ts(596,32):
  TS2532: Object is possibly 'undefined'.
  
  ERROR in grafana/data/plugins/natel-discrete-panel/src/module.ts
  ERROR in grafana/data/plugins/natel-discrete-panel/src/module.ts(601,16):
  TS2532: Object is possibly 'undefined'. 
  
  Trace: Build failed
      at grafana/data/plugins/natel-discrete-panel/node_modules/@grafana/toolkit/src/cli/utils/useSpinner.js:24:29
      at step (grafana/data/plugins/natel-discrete-panel/node_modules/@grafana/toolkit/node_modules/tslib/tslib.js:136:27)
      at Object.throw (grafana/data/plugins/natel-discrete-panel/node_modules/@grafana/toolkit/node_modules/tslib/tslib.js:117:57)
      at rejected (grafana/data/plugins/natel-discrete-panel/node_modules/@grafana/toolkit/node_modules/tslib/tslib.js:108:69)
      at processTicksAndRejections (internal/process/task_queues.js:97:5)
✖ Build failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant