e.dependencies.forEach is not a function
-
I'm getting this error when trying to load any plugin:
Uncaught (in promise) TypeError: e.dependencies.forEach is not a function at yt (index.js:1:31140) at bt (index.js:1:31731) at r.value (index.js:1:257953) at r (index.js:1:163974) e = { "name": "@plugins/windy-plugin-pg-mapa", "dependencies": "", "callback": "", "wasLoaded": false }
With some internal plugins, dependencies is an array.
Where should I define the dependencies? However, it seems like an error in Windy itself.
-
@jakubvrana @rittels am getting a similar error on my plugin
-
Any news when it will works again? I am kind of lost without it :D
Thank you
-
@jakubvrana this has changed with v39.
You can see the new way to build plugins at https://github.com/windycom/windy-plugins
This is how I updated my plugin to work with v39 - note that I was already using rollup before which was not the recommended way.
You should definitely be using rollup now with the plugins from windy.
-
@vicb Thanks. I've updated my plugin. Do you know how can I now close the left panel with the plugin. It used to be
this.close()
butthis
is not available anymore.https://github.com/vrana/windy-plugin-flymet/blob/08620d2e/src/plugin.js#L69
-
@jakubvrana have you tried rqstClose?
https://github.com/windycom/windy-plugins/blob/master/docs/WINDY_API.md#module-brodacast -
@vicb Thanks, that's the one.