We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 copy your code and got error ReferenceError: process is not defined.
Why ?
index.js import _ from 'lodash'
function component() { const elem = document.createElement('div')
elem.innerHTML = _.join(['Hello', process.env.NAME], ' ')
return elem }
document.body.appendChild(component())
.env NAME= CHANGE_ME
The text was updated successfully, but these errors were encountered:
Same as me :-(
Sorry, something went wrong.
Hi. You need to add a path to your file if the file is different from the default
Example: If your env file has name .env.production - you need to add in plugins next config: new Dotenv({ path: 'path to your file/.env.production' })
new Dotenv({ path: 'path to your file/.env.production' })
No branches or pull requests
i copy your code and got error ReferenceError: process is not defined.
Why ?
index.js
import _ from 'lodash'
function component() {
const elem = document.createElement('div')
elem.innerHTML = _.join(['Hello', process.env.NAME], ' ')
return elem
}
document.body.appendChild(component())
.env
NAME= CHANGE_ME
The text was updated successfully, but these errors were encountered: