You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 1, 2020. It is now read-only.
error TypeError: Cannot read property 'moduleType' of undefinded
main.ts
const debug = require('debug')('devetek:hompes');
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from '@app/app.module';
import { enableProdMode } from '@angular/core';
import { NODE_ENV } from '@constants/index';
if (NODE_ENV) {
enableProdMode();
}
document.addEventListener('DOMContentLoaded', () => {
platformBrowserDynamic().bootstrapModule(AppModule)
.catch(err => debug(err));
});
Which @ionic/app-scripts version are you using?
npm run-script build --prod
Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
Its running well when exec ionic-app-scripts serve
error on build prod:
Cannot read property 'moduleType' of undefined
TypeError: Cannot read property 'moduleType' of undefined
at http://localhost/build/vendor.js:1:38866
at t.invoke (http://localhost/build/polyfills.js:3:14976)
at Object.onInvoke (http://localhost/build/vendor.js:1:34734)
at t.invoke (http://localhost/build/polyfills.js:3:14916)
at r.run (http://localhost/build/polyfills.js:3:10143)
at t.run (http://localhost/build/vendor.js:1:35456)
at t.bootstrapModuleFactory (http://localhost/build/vendor.js:1:38797)
at HTMLDocument.<anonymous> (http://localhost/build/main.js:1:373)
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Note: for support questions, please use one of these channels:
https://forum.ionicframework.com/
http://ionicworldwide.herokuapp.com/
Short description of the problem:
Error when exec build --prod
What behavior are you expecting?
Running normal
Steps to reproduce:
TypeError: Cannot read property 'moduleType' of undefinded
main.ts
Which @ionic/app-scripts version are you using?
npm run-script build --prod
Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
Its running well when exec
ionic-app-scripts serve
error on build prod:
The text was updated successfully, but these errors were encountered: