Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
firmanserdana opened this issue May 31, 2023 · 5 comments
Closed

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

firmanserdana opened this issue May 31, 2023 · 5 comments

Comments

@firmanserdana
Copy link

firmanserdana commented May 31, 2023

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

@EliaBracciSumo
Copy link

+1

@motdotla
Copy link
Owner

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

@motdotla
Copy link
Owner

@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.

@motdotla
Copy link
Owner

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

@motdotla
Copy link
Owner

Released. Use 16.1.3 or greater.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants