Giter VIP home page Giter VIP logo

Comments (8)

Tomino2112 avatar Tomino2112 commented on May 19, 2024 1

@antony That's done it ! thanks

from vudash.

Tomino2112 avatar Tomino2112 commented on May 19, 2024

This seem to be windows only issue, on linux it works as expected

from vudash.

antony avatar antony commented on May 19, 2024

Hi @Tomino2112

Thanks for the report - I've actually never tried to run it on Windows, which is probably why it doesn't work! I can see that the backslashes are turning their adjacent characters into escape-chars.

I'll see if I can find out how to fix this - but I'll have to find a windows machine first!

For now you could run it on Linux / Run it inside docker as a workaround.

from vudash.

Tomino2112 avatar Tomino2112 commented on May 19, 2024

Hi @antony I am actually still debugging it and so far tracked it to the rollup package. I am not familiar with this module, maybe misconfiguration? You have a configuration-builder there that dynamically creates the rollup config, maybe would be as easy as change the generated config?

from vudash.

antony avatar antony commented on May 19, 2024

Hmm - The rollup plugin responsible for composing the svelte components, which is what it looks like is failing on your system. Strange, as I'd expect rollup/rollup-plugin-svelte to work across all Operating Systems.

from vudash.

Tomino2112 avatar Tomino2112 commented on May 19, 2024

Right, you could fix the issue from your side, I have just done it but definitely not pretty solution.

In src/modules/dashboard/bundle-builder/index.js:25

I have added:

for(var i = 0; i < imports.length; i++){
  imports[i] = imports[i].split("\\").join("/");
}

And that fixed the issue

from vudash.

antony avatar antony commented on May 19, 2024

HI,

So it seems that the way I dynamically write the dashboard js bundle is writing import strings and escaping them which means that \\ is being turned into \.

What I've done is I've made a fix in 7.6.2 which pre-converts windows paths to unix paths (which windows understands as you've demonstrated above), so this should work on all platforms.

Give 7.6.2 a go and see if you have any luck :)

from vudash.

Tomino2112 avatar Tomino2112 commented on May 19, 2024

@antony Will do probably tomorrow

from vudash.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.