This repository was archived by the owner on May 1, 2020. It is now read-only.
This repository was archived by the owner on May 1, 2020. It is now read-only.
"Environments" section of repo results in "ReferenceError" in new v4 app #1531
Open
Description
Short description of the problem:
I've been attempting to include env variables from .env.dev
using this section of the README. However I get the error ReferenceError: process is not defined
when viewing my app in a browser.
Steps to reproduce:
I created a repo, so you can see the commits:
https://github.com/josh-m-sharpe/env_vars
Pretty straight forward:
- new v4 app
- create src/declarations.d.ts
- create .env.dev
- add
console.log(process.env.MY_VAR)
insrc/app/home/home.page.ts
- ionic serve
Which @ionic/app-scripts version are you using?
4.0
Metadata
Metadata
Assignees
Labels
No labels