Git Product home page Git Product logo

Comments (9)

alexanderniebuhr avatar alexanderniebuhr commented on June 12, 2024 1

will be fixed in beta.9 later today

from svelte-windicss-preprocess.

cgibsonmm avatar cgibsonmm commented on June 12, 2024 1

Can confirm that adding

... 
preprocess: require("svelte-windicss-preprocess/browser").preprocess(
...

Has fixed this

from svelte-windicss-preprocess.

alexanderniebuhr avatar alexanderniebuhr commented on June 12, 2024

do you have svelte installed as dependency? I know what this is... :(

from svelte-windicss-preprocess.

cgibsonmm avatar cgibsonmm commented on June 12, 2024

I have it in my dev dependencies yes!

from svelte-windicss-preprocess.

alexanderniebuhr avatar alexanderniebuhr commented on June 12, 2024

yeah, i know the bug, i do not know a fix for now. i need to use prettier-svelte-plugin, it should be bundled but electron might be using it differently. I will add an config flag tomorrow for that.

If that is not breaking your app, you could set process.env.BROWSER = true, this should be a workaround

from svelte-windicss-preprocess.

cgibsonmm avatar cgibsonmm commented on June 12, 2024

Thank you, I am was trying out a create sapper electron build I found to try it out. It does not seem to be maintained or supported really. Might just need to look somewhere else.

from svelte-windicss-preprocess.

alexanderniebuhr avatar alexanderniebuhr commented on June 12, 2024

well, the issue with the missing lib is definitely a bug. It will be fixed, v2 should not have that problem. v3 is still beta

from svelte-windicss-preprocess.

cgibsonmm avatar cgibsonmm commented on June 12, 2024

Okay, thanks for the info. here is the link to my project with the error if you wanted to have a look. I think you are already aware of the problem though so. daily

from svelte-windicss-preprocess.

OysterD3 avatar OysterD3 commented on June 12, 2024

I had this issue in rollup as well. rollup-plugin-node-resolve suppose to use browser

// ...
plugins: [
  resolve({
    browser: true,
  }),
]

But svelte-windicss-preprocess still point to main, I had to do this

import windicssPreprocess from "svelte-windicss-preprocess/browser";

from svelte-windicss-preprocess.

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.