Giter Club home page Giter Club logo

Comments (5)

evanshortiss avatar evanshortiss commented on May 23, 2024 1

@rasdaniil think all should be good now if you install npm install [email protected]. Reopen this if necessary 😄

EDIT - Fixed to state version 3.0.2, previously stated 3.0.3

from env-var.

evanshortiss avatar evanshortiss commented on May 23, 2024

@rasdaniil interesting, I did not think this module would be used in the browser! Are you using it with browserify or webpack and injecting some process.env?

What is your use case if you don't mind me asking?

EDIT - I see you are using webpack

from env-var.

evanshortiss avatar evanshortiss commented on May 23, 2024

@rasdaniil can you try npm install evanshortiss/env-var#browser-fix and let me know if it resolves your issue? If so I can publish it. I've tested with browserify here and have it working as shown in this screenshot, but want to make sure it's fixed for your setup too:

screen shot 2017-10-18 at 15 48 29

I bundled it using the command browserify ./env-var.js -o test-browserify.js -s envvar and then loaded it in Chrome.

from env-var.

iamdanthedev avatar iamdanthedev commented on May 23, 2024

Hi!
Thanks a lot for reply! I've just now got round to checking my email
I'll give it a try shortly

The use case is: webpack injects .env file into a bundle, but before updating the env file I add neccesary type safe instructions to the "configservice" thanks to env-var, so a) I won't forget to update environment setting anywhere else b) typesafety

from env-var.

evanshortiss avatar evanshortiss commented on May 23, 2024

@rasdaniil awesome - did something similar before, but didn't use this module! Also, my previous comment should have stated version 3.0.2

from env-var.

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.