Windy Community
    • Unread
    • Categories
    • Groups
    • Go to windy.com
    • Register
    • Login

    e.dependencies.forEach is not a function

    Windy Plugins
    4
    7
    1.3k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • jakubvranaJ
      jakubvrana | Premium
      last edited by

      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.

      davinkD vicbV 2 Replies Last reply Reply Quote 1
      • davinkD
        davink Kiter @jakubvrana | Premium
        last edited by

        @jakubvrana @rittels am getting a similar error on my plugin

        1 Reply Last reply Reply Quote 1
        • JakubRottJ
          JakubRott | Premium
          last edited by

          Any news when it will works again? I am kind of lost without it :D

          Thank you

          1 Reply Last reply Reply Quote 0
          • vicbV
            vicb Paraglider @jakubvrana | Premium
            last edited by

            @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.

            jakubvranaJ 1 Reply Last reply Reply Quote 0
            • jakubvranaJ
              jakubvrana @vicb | Premium
              last edited by

              @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() but this is not available anymore.

              https://github.com/vrana/windy-plugin-flymet/blob/08620d2e/src/plugin.js#L69

              vicbV 1 Reply Last reply Reply Quote 0
              • vicbV
                vicb Paraglider @jakubvrana | Premium
                last edited by

                @jakubvrana have you tried rqstClose?
                https://github.com/windycom/windy-plugins/blob/master/docs/WINDY_API.md#module-brodacast

                jakubvranaJ 1 Reply Last reply Reply Quote 0
                • jakubvranaJ
                  jakubvrana @vicb | Premium
                  last edited by

                  @vicb Thanks, that's the one.

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Windyty, S.E. - all rights reserved. Powered by excellent NodeBB
                  NodeBB & contributors, OSM & contributors, HERE maps
                  Terms of Use     Privacy Policy