You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I verified that the issue exists in the latest Next.js canary release
Provide environment information
error - Failed to load env from E:\Nextflix\Nextflix.env.local TypeError: Cannot read properties of undefined (reading 'split')
at E:\Nextflix\Nextflix\node_modules@next\env\dist\index.js:1:311
at Array.reduce ()
at _interpolate (E:\Nextflix\Nextflix\node_modules@next\env\dist\index.js:1:125)
at expand (E:\Nextflix\Nextflix\node_modules@next\env\dist\index.js:1:709)
at processEnv (E:\Nextflix\Nextflix\node_modules@next\env\dist\index.js:1:3706)
at Module.loadEnvConfig (E:\Nextflix\Nextflix\node_modules@next\env\dist\index.js:1:4660)
at Object.loadConfig [as default] (E:\Nextflix\Nextflix\node_modules\next\dist\server\config.js:41:21)
at NextServer.loadConfig (E:\Nextflix\Nextflix\node_modules\next\dist\server\next.js:146:36)
at NextServer.getServer (E:\Nextflix\Nextflix\node_modules\next\dist\server\next.js:150:39)
at NextServer.prepare (E:\Nextflix\Nextflix\node_modules\next\dist\server\next.js:130:35)
Which area(s) of Next.js are affected? (leave empty if unsure)
No response
Link to reproduction - Issues with a link to complete (but minimal) reproduction code will be addressed faster
.env.local file unexpectedly stopped working. It used to be working fine in the morning but no longer works in the morning. It started throwing an error: "Cannot read .local.env file" without any change in the code.
Expected Behavior
I expect the environment variables to be loaded just fine in my application.
Which browser are you using? (if relevant)
Google Chrome
How are you deploying your application? (if relevant)
No response
The text was updated successfully, but these errors were encountered:
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Verify canary release
Provide environment information
error - Failed to load env from E:\Nextflix\Nextflix.env.local TypeError: Cannot read properties of undefined (reading 'split')
at E:\Nextflix\Nextflix\node_modules@next\env\dist\index.js:1:311
at Array.reduce ()
at _interpolate (E:\Nextflix\Nextflix\node_modules@next\env\dist\index.js:1:125)
at expand (E:\Nextflix\Nextflix\node_modules@next\env\dist\index.js:1:709)
at processEnv (E:\Nextflix\Nextflix\node_modules@next\env\dist\index.js:1:3706)
at Module.loadEnvConfig (E:\Nextflix\Nextflix\node_modules@next\env\dist\index.js:1:4660)
at Object.loadConfig [as default] (E:\Nextflix\Nextflix\node_modules\next\dist\server\config.js:41:21)
at NextServer.loadConfig (E:\Nextflix\Nextflix\node_modules\next\dist\server\next.js:146:36)
at NextServer.getServer (E:\Nextflix\Nextflix\node_modules\next\dist\server\next.js:150:39)
at NextServer.prepare (E:\Nextflix\Nextflix\node_modules\next\dist\server\next.js:130:35)
Which area(s) of Next.js are affected? (leave empty if unsure)
No response
Link to reproduction - Issues with a link to complete (but minimal) reproduction code will be addressed faster
https://github.com/mmaksi/Nextflix
To Reproduce
Step 1: npm install
Step 2: npm run dev
Describe the Bug
.env.local file unexpectedly stopped working. It used to be working fine in the morning but no longer works in the morning. It started throwing an error: "Cannot read .local.env file" without any change in the code.
Expected Behavior
I expect the environment variables to be loaded just fine in my application.
Which browser are you using? (if relevant)
Google Chrome
How are you deploying your application? (if relevant)
No response
The text was updated successfully, but these errors were encountered: