Skip to content
New issue

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

npm run-script build --prod ERROR #2

Open
codercatdev opened this issue Jul 31, 2017 · 0 comments
Open

npm run-script build --prod ERROR #2

codercatdev opened this issue Jul 31, 2017 · 0 comments

Comments

@codercatdev
Copy link

@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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant