-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
angular4 webpack2 build error #4172
Comments
At first glance it looks like something minifies your HTML in a non-case-sensitive way. This causes the directive to be not valid anymore. Are you using the HTML-Loader? If so, with some special configuration? Could also be the other way around and you specified it lower-case yourself. The directive is |
@devversion thank you very much, i used html-loader, when i changed to 'raw-loader', get success. |
it's workd for production. |
same error with karma unit-tesing, solution hereA "Testing with Material Components" guide to demonstrate including core theme in test suite #4056 |
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. |
feature request:
polyfills.0836852….js:2 Unhandled Promise rejection: Template parse errors:
Can't bind to 'mdmenutriggerfor' since it isn't a known property of 'a'. ("Home Blog About <a class=pull-right md-button [ERROR ->][mdmenutriggerfor]=theme>Theme <md-menu #theme=mdMenu> <md-icon class=text-"): ng:///AppModule/AppComponent.html@0:152
Can't bind to 'mdmenutriggerfor' since it isn't a known property of 'button'. ("dashboard Blue Ocean <button class=pull-right md-button [ERROR ->][mdmenutriggerfor]=account>TaylorPzreal <md-menu #account=mdMenu> <md-"): ng:///AppModule/AppComponent.html@0:567 ; Zone: ; Task: Promise.then ; Value: Error: Template parse errors:
Can't bind to 'mdmenutriggerfor' since it isn't a known property of 'a'. ("Home Blog About <a class=pull-right md-button [ERROR ->][mdmenutriggerfor]=theme>Theme <md-menu #theme=mdMenu> <md-icon class=text-"): ng:///AppModule/AppComponent.html@0:152
Can't bind to 'mdmenutriggerfor' since it isn't a known property of 'button'. ("dashboard Blue Ocean <button class=pull-right md-button [ERROR ->][mdmenutriggerfor]=account>TaylorPzreal <md-menu #account=mdMenu> <md-"): ng:///AppModule/AppComponent.html@0:567
at syntaxError (http://localhost:9000/dist/vendor.08368524123563a175f8.js:2:293382) []
at TemplateParser.parse (http://localhost:9000/dist/vendor.08368524123563a175f8.js:2:484994) []
when i use webpack in my dev it's success, but when i build it get those errors.
my development:
Linux + Chrome
Angular4.0.2 + @angular/material2.0.0-beta.3 + webpack2.3.3
The text was updated successfully, but these errors were encountered: