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

I'm getting this error when i try to execute it #20

Open
erickjhorman opened this issue Oct 1, 2022 · 3 comments
Open

I'm getting this error when i try to execute it #20

erickjhorman opened this issue Oct 1, 2022 · 3 comments

Comments

@erickjhorman
Copy link

import { config } from "dotenv";
^^^^^^
SyntaxError: The requested module 'dotenv' does not provide an export named 'config'

@moferrin
Copy link

import { config } from "dotenv"; ^^^^^^ SyntaxError: The requested module 'dotenv' does not provide an export named 'config'

need create .env file, and run npm install

https://www.youtube.com/watch?v=-bI0diefasA&t=8025s

@Rabiyya1302
Copy link

dotenv.config({ path: './.env'}) you can use this command but make sure your main app.js should be in same directory as .env file

@Saif-Arshad
Copy link

create .env file

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

4 participants