-
Notifications
You must be signed in to change notification settings - Fork 12k
ng build -prod fails with angular2-material #1002
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
Comments
It throws the same for me too. |
Potentially linked to #1052 |
Did you forget to include the mapping in system-config.ts ? You need this: const map: any = {
'@angular2-material': 'vendor/@angular2-material'
};
/** User packages configuration. */
const packages: any = {
};
const materialPkgs: string[] = [
'button',
'card',
'checkbox',
'core',
'grid-list',
'icon',
'input',
'list',
'progress-bar',
'progress-circle',
'radio',
'sidenav',
'side-toggle',
'tabs',
'toolbar'
];
materialPkgs.forEach((pkg) => {
packages[`@angular2-material/${pkg}`] = {main: `${pkg}.js`};
}); |
@un33k yes, i have include the mapping in system-config.ts ,but also got this error my config:
|
@iloveyo123u1 You may want to have a look at this working project ( puppy-love ) as a reference. |
Issue made obsolete by #1455. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
ng version:
angular-cli: 1.0.0-beta.5
node: 5.10.1
os: win32 x64
angular 2.0.0-rc.1
angular2-material 2.0.0-alpha.4
angular-cli-build.js
package.json
i run ng serve, it ok
but when i run ng build -prod,i got an error:
could you help me?
thank you very much
The text was updated successfully, but these errors were encountered: