ionic2-environment-variables
ionic2-environment-variables copied to clipboard
npm run-script build --prod ERROR
@roblouie Any reason this won't work vs the actual serve process? We use the www file in production and this won't allow us to build to that.
npm run-script build --prod
[15:05:34] ionic-app-script task: "build"
[15:05:34] Error: ./environment-variables/environment-variables.module.ts Module build failed: TypeError: Cannot read
property 'content' of undefined at Object.optimizationLoader
(/Users/gap4/Documents/WEB/HAWORTH/HIES/hies_client_example/node_modules/@ionic/app-scripts/dist/webpack/optimization-loader-impl.js:14:24)
at Object.loader
(/Users/gap4/Documents/WEB/HAWORTH/HIES/hies_client_example/node_modules/@ionic/app-scripts/dist/webpack/optimization-loader.js:5:32)
@ ./src/app/app.module.ngfactory.js 19:0-84 @
./src/app/main.ts,./environment-variables/environment-variables.token.ts Module build failed: TypeError:
Cannot read property 'content' of undefined at Object.optimizationLoader
(/Users/gap4/Documents/WEB/HAWORTH/HIES/hies_client_example/node_modules/@ionic/app-scripts/dist/webpack/optimization-loader-impl.js:14:24)
at Object.loader
(/Users/gap4/Documents/WEB/HAWORTH/HIES/hies_client_example/node_modules/@ionic/app-scripts/dist/webpack/optimization-loader.js:5:32)
@ ./src/app/app.module.ngfactory.js 113:0-84 @ ./src/app/main.ts
Error: ./environment-variables/environment-variables.module.ts
Module build failed: TypeError: Cannot read property 'content' of undefined
at Object.optimizationLoader (/Users/gap4/Documents/WEB/HAWORTH/HIES/hies_client_example/node_modules/@ionic/app-scripts/dist/webpack/optimization-loader-impl.js:14:24)
at Object.loader (/Users/gap4/Documents/WEB/HAWORTH/HIES/hies_client_example/node_modules/@ionic/app-scripts/dist/webpack/optimization-loader.js:5:32)
@ ./src/app/app.module.ngfactory.js 19:0-84
@ ./src/app/main.ts,./environment-variables/environment-variables.token.ts
Module build failed: TypeError: Cannot read property 'content' of undefined
at Object.optimizationLoader (/Users/gap4/Documents/WEB/HAWORTH/HIES/hies_client_example/node_modules/@ionic/app-scripts/dist/webpack/optimization-loader-impl.js:14:24)
at Object.loader (/Users/gap4/Documents/WEB/HAWORTH/HIES/hies_client_example/node_modules/@ionic/app-scripts/dist/webpack/optimization-loader.js:5:32)
@ ./src/app/app.module.ngfactory.js 113:0-84
@ ./src/app/main.ts
at BuildError.Error (native)
at new BuildError (/Users/gap4/Documents/WEB/HAWORTH/HIES/hies_client_example/node_modules/@ionic/app-scripts/dist/util/errors.js:16:28)
at /Users/gap4/Documents/WEB/HAWORTH/HIES/hies_client_example/node_modules/@ionic/app-scripts/dist/preprocess.js:18:21
at process._tickCallback (internal/process/next_tick.js:109:7)