Git Product home page Git Product logo

Comments (5)

rgossiaux avatar rgossiaux commented on July 23, 2024 2

Just made a new release which fixes this.

from svelte-headlessui.

rgossiaux avatar rgossiaux commented on July 23, 2024 1

Thanks for the report. It's because there are a few process.env.NODE_ENV references in the code, and the SvelteKit package command (which is what I use to package this up for NPM) doesn't replace them. Then the packaging in your test repo also does not handle process.env, it seems.

IMO there's no reason why the process.env references should be in the end-user package, so I filed a bug with SvelteKit: sveltejs/kit#3480

Depending on if/when we can get better handling of this in SvelteKit, I may add my own hacky find-and-replace step to the build process.

from svelte-headlessui.

jerriclynsjohn avatar jerriclynsjohn commented on July 23, 2024

Then the packaging in your test repo also does not handle process.env, it seems.

How can I handle this now, what should I do to make this work for now?

from svelte-headlessui.

rgossiaux avatar rgossiaux commented on July 23, 2024

I'll fix this in the next release (should be later today) by just adding some quick sed command to my release process or something. Hopefully we'll get some better support for this upstream in SvelteKit eventually.

from svelte-headlessui.

jerriclynsjohn avatar jerriclynsjohn commented on July 23, 2024

Hey this worked, thank you. I really appreciate this!!!

from svelte-headlessui.

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.