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

    Beginner developer query - possible dependency issue

    Scheduled Pinned Locked Moved Windy Plugins
    8 Posts 3 Posters 2.1k Views 1 Watching
    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.
    • R Offline
      rshaw13
      last edited by

      I've followed the instructions on the documentation to fork the template github repo and clone it to my local device.
      I have installed npm, node.js, and the latest version of leaflet.

      When I run the command "npm start" in my local repo fork dir, I have been getting the following error repeatedly, and I can't find a solution online. I'd imagine I might be be missing something as I am a beginner with Git and JS? Or is this an issue with the repo?

      a35ace66-3620-4335-a88c-7fb6fe8931a0-image.png

      Can anybody help with this basic query? It would be much appreciated!

      1 Reply Last reply Reply Quote 0
      • idefix37I idefix37 marked this topic as a regular topic on
      • R Offline
        rshaw13
        last edited by

        i am now wondering if the version of node.js i am using is relevant - i have node 23.5.0 and npm 11.0 installed.

        https://community.windy.com/topic/37156/error-trying-to-run-template-plugin

        this thread suggests using node.js 18

        rittelsR 3 Replies Last reply Reply Quote 0
        • rittelsR Offline
          rittels Code contributor @rshaw13 | Premium
          last edited by

          @rshaw13
          @Ivo

          The plugins are not supported on the windows platform, but works well on WSL2 (windows subsystem for linux) (Which I use).

          1 Reply Last reply Reply Quote 0
          • rittelsR Offline
            rittels Code contributor @rshaw13 | Premium
            last edited by

            @rshaw13

            You can make it work in windows, check out this thread:

            https://community.windy.com/post/190678

            L 1 Reply Last reply Reply Quote 0
            • rittelsR Offline
              rittels Code contributor @rshaw13 | Premium
              last edited by

              @rshaw13

              Just ignore the ERROR in red, it will still occur, and does not matter. The problem is that the windy compiler cannot find the pluginConfig.ts file, on the windows platform.

              R 1 Reply Last reply Reply Quote 0
              • R Offline
                rshaw13 @rittels
                last edited by

                @rittels perfect. thank you very much for pointing that one out

                1 Reply Last reply Reply Quote 0
                • L Offline
                  LostSummer @rittels
                  last edited by

                  @rittels

                  Hello I've run into the same issue, but even following solution provided in the link above, I can't have my problem resolved.

                  Here is what I have tried:
                  I tried to run the server on both Windows and Linux (Ubuntu 20.04), but failed in both, so does it mean I must run the example on WSL2?

                  I also tried to add cross-env and update the pathOfTheFile in node_modules, as you mentioned. However, the line I met was

                  const pathOfTheFile = facadeModuleId.replace(/[\\/][^\\/]*$/, '')
                  

                  and I am not quite sure what to do with this line. I tried to copy what you've written, but the problme is not gone.

                  rittelsR 1 Reply Last reply Reply Quote 0
                  • rittelsR Offline
                    rittels Code contributor @LostSummer | Premium
                    last edited by

                    @LostSummer What issue specifically?

                    This one?

                     ERROR  failed to read input source map: failed to find input source map file "pluginConfig.js.map" in.....
                    
                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post
                    Windy Community  |  Powered by excellent NodeBB
                    Terms of Use     Privacy Policy     Windy.com