gshigeto / ionic-environment-variables

Easy to use environment variables for Ionic3!
MIT License
276 stars 36 forks source link

using environment variables with live deploy #27

Closed billyLumberjack closed 6 years ago

billyLumberjack commented 6 years ago

hey guys, got the following error after introducing env variables in my proj. Actually deploying the application with ionic live deploy the deploy console returns an error:

$ npm run build
npm info it worked if it ends with ok
npm info using npm@5.3.0
npm info using node@v8.2.1
npm info lifecycle iweather@0.0.1~prebuild: app@0.0.1
npm info lifecycle iweather@0.0.1~build: app@0.0.1

> app@0.0.1 build /usr/src/app
> ionic-app-scripts build

[17:02:03]  ionic-app-scripts 3.1.8 
[17:02:03]  build dev started ... 
[17:02:03]  clean started ... 
[17:02:03]  clean finished in 1 ms 
[17:02:03]  copy started ... 
[17:02:03]  deeplinks started ... 
[17:02:03]  deeplinks finished in 99 ms 
[17:02:03]  transpile started ... 

./src/environments/environment.ts does not exist!
There was an error in config file "/usr/src/app/config/webpack.config.js". Using defaults instead.
TypeError: Path must be a string. Received undefined

I think this is because of webpack.config.js uses the filesystem...

Robinyo commented 6 years ago

See: