# How to resolve 'grafana/app/plugins/sdk' with grunt and grunt-webpack

**URL:** <https://community.grafana.com/t/how-to-resolve-grafana-app-plugins-sdk-with-grunt-and-grunt-webpack/14083>\
**Category:** Grafana Plugin Development\
**Created:** [February 1, 2019, 11:00am UTC](https://community.grafana.com/t/how-to-resolve-grafana-app-plugins-sdk-with-grunt-and-grunt-webpack/14083 "2019-02-01T11:00:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![arnaudg](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@arnaudg](https://community.grafana.com/u/arnaudg)\
**Post date:** [February 1, 2019, 11:00am UTC](https://community.grafana.com/t/how-to-resolve-grafana-app-plugins-sdk-with-grunt-and-grunt-webpack/14083/1 "2019-02-01T11:00:51Z")

</div>

Hi,  
Grunt/webpack cant resolve this

```
webpack: {
  js: {
    target: 'node',
    context: path.resolve('src'),
    entry: "./module.js",
    output: {
      path: path.resolve('dist'),
      libraryTarget: 'amd'
    },
  }
},

```

in module.js :  
import { PanelCtrl } from ‘grafana/app/plugins/sdk’;

ERROR in ./src/module.js  
Module not found: Error: Can’t resolve ‘grafana/app/plugins/sdk’ in ‘D:\x157703\dev\workspace\grafana\plugin\grafana-webpack-mxgraph\src’  
@ ./src/module.js 1:0-52

How to resolve it ?

---

<div class="post-metadata">

**Author:** ![torkel](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/torkel/32/20_2.png) [@torkel](https://community.grafana.com/u/torkel)\
**Post date:** [February 1, 2019, 4:46pm UTC](https://community.grafana.com/t/how-to-resolve-grafana-app-plugins-sdk-with-grunt-and-grunt-webpack/14083/2 "2019-02-01T16:46:46Z")

</div>

you should mark them as external

---

<div class="post-metadata">

**Author:** ![torkel](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/torkel/32/20_2.png) [@torkel](https://community.grafana.com/u/torkel)\
**Post date:** [February 1, 2019, 4:48pm UTC](https://community.grafana.com/t/how-to-resolve-grafana-app-plugins-sdk-with-grunt-and-grunt-webpack/14083/3 "2019-02-01T16:48:56Z")

</div>

> <https://github.com/grafana/influxdb-flux-datasource/blob/master/webpack.config.js#L32>

---

<div class="post-metadata">

**Author:** ![arnaudg](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@arnaudg](https://community.grafana.com/u/arnaudg)\
**Post date:** [February 2, 2019, 12:07pm UTC](https://community.grafana.com/t/how-to-resolve-grafana-app-plugins-sdk-with-grunt-and-grunt-webpack/14083/4 "2019-02-02T12:07:44Z")

</div>

ok, i’ll try it.  
thanks for your answer
