motdotla/dotenv

> path.resolve is not a function TypeError on version 16.1.1

firmanserdana opened this issue · 5 comments

Hello @motdotla

it was working fine on 16.0.3

updating to 16.1.1 getting me those TypeError

Usecase: Cypress Automated Test (looks like any version)

image

@firmanserdana can you show some of your test code? Where are you loading dotenv in your test code, etc?

@firmanserdana nevermind. I have a failing example set up here: https://github.com/dotenv-org/examples/tree/master/dotenv-cypress-typescript

Working through the issue now.

This will be the fix: #745

I set these as false incorrectly. Instead front-end code should have the necessary polyfils included from browserify. Looks like cypress does.

I'll be updating the README shortly and releasing the patch. Until then you can install with:

npm install motdotla/dotenv#86ef7b2c7c9e8258743db7fedb7a25d6d57c3d15 --save

Released. Use 16.1.3 or greater.

Closing this. If you still have trouble let me know and I will reopen.