Giter VIP home page Giter VIP logo

Comments (7)

Mokshit06 avatar Mokshit06 commented on July 24, 2024 2

Hm yeah it looks like vite build --watch doesn't work, but vite's HMR does if you are using a framework that makes use of that. Looks like an issue with how macaron resolves files – will try to find a fix for this

from macaron.

Mokshit06 avatar Mokshit06 commented on July 24, 2024 1

This should be fixed in the latest version. The issue was that macaron was clearing the cache before every build, so every time you changed something, it would clear the cache in watch mode and then vite couldn't resolve the file.

from macaron.

Pagebakers avatar Pagebakers commented on July 24, 2024

Same issues here with Vite, any known work around for this? Really like to get going with this lib but this is blocking me.

from macaron.

Mokshit06 avatar Mokshit06 commented on July 24, 2024

Thanks for reporting this. I have been looking into what is causing it, and it seems to be a change in the internals of vite. I haven't been able to come up with a fix yet, but using a lower version of vite should fix it in the meanwhile

from macaron.

Pagebakers avatar Pagebakers commented on July 24, 2024

I see, which version exactly? I'll downgrade for now.

Tried 3.2.7 and 2.7.0 but still get the same errors.

from macaron.

dugip avatar dugip commented on July 24, 2024

Any news here @Mokshit06? Is there I can help?

from macaron.

Mokshit06 avatar Mokshit06 commented on July 24, 2024

Unfortunately I didn't get the time to work on it. Will try to see if I can fix it this week. If you want to try working on it, I would start by adding breakpoints/logs to the resolveId and load callbacks, and seeing when they don't resolve with watch mode. This probably has something to do with the resolverCache/cssMap/idToPluginData.

from macaron.

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.