motdotla / dotenv-expand

Variable expansion for dotenv. Expand variables already on your machine for use in your .env file.

Home Page:https://dotenvx.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fs.readFileSync is not a function

ayoubgm opened this issue · comments

i get an error about fs.readFileSync is not a function while import the two packages specified in the doc !
Anyone have the same issue !

import dotenv from "dotenv";
import dotenvExpand from "dotenv-expand";

const env = dotenv.config();
dotenvExpand(env);

commented

What version of node are you on @ayoubgm ?