This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
requiring ('dotenv') inside of gatsby-config.js breaks resulting in webpack error #35618
Closed
2 tasks done
Preliminary Checks
Description
Project builds successfully but as soon as I require dotenv inside of the gatsby-config.js file, I get a webpack error
Reproduction Link
https://github.com/luiscmartinez/gatsby-portfolio-1
Steps to Reproduce
npm i
npm run dev
(runs gatsby develop)require('dotenv').config()
to the top of thegatsby-config.js
file...
After this you should get the webpack error
Expected Result
Actual Result
Environment
Config Flags
No response
The text was updated successfully, but these errors were encountered: