-
Notifications
You must be signed in to change notification settings - Fork 773
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
crash with 2.0.0-beta.8 #270
Comments
Forgot to mention. |
I'm getting the same error, also on my '/login' route. It breaks as soon as I add a |
I'm getting the same error. I had beta 8 installed together with material beta 3. |
Im having the same issue after upgrading to latest for both material and flex-layout |
@here - we will investigate this today! Thank you. |
@here - I just installed a new project with @angluar/cli 1.0.4 + node 6.9.5 + @angular/[email protected] + @angular/[email protected] app.component.tsimport { Component } from '@angular/core';
@Component({
selector: 'app-root',
template: `
<md-tab-group>
<md-tab label="Password" *ngIf='true'>
<md-card fxFlex="0 1 18em" fxFlex.xs='100'>
<md-card-header class="md-primary md-hue-1">
<b>Local identity (email+password)</b>
</md-card-header>
<md-card-content>
hello world
</md-card-content>
</md-card>
</md-tab>
</md-tab-group>
`,
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'app works!';
} ./shared/shared.module.tsimport 'hammerjs';
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { RouterModule } from '@angular/router';
import { MdTabsModule, MdCardModule } from '@angular/material';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'
import { FlexLayoutModule } from '@angular/flex-layout';
@NgModule({
imports: [
CommonModule
, MdTabsModule, MdCardModule
, BrowserAnimationsModule
, FlexLayoutModule
],
declarations: [ ],
providers: [ ],
exports: [
CommonModule
, FormsModule
, RouterModule
, MdTabsModule, MdCardModule
, BrowserAnimationsModule
, FlexLayoutModule
]
})
export class SharedModule { } Everything works great without any issues. Suggestions
|
I don't have a minimal reproduction scenario, but I've seen this happen too. moving to beta.7 solves this. |
@HarelM - Moving to Beta.7 is not realistic solution. |
Closing as not a Flex-Layout issue. |
@ThomasBurleson I don't fully understand both your statements. When I moved to beta.8 an issue started happening, So there's not much I can do besides moving back to beta.7 until the issue is resolved (and probably skipping beta.8). |
@ThomasBurleson Please reopen it. |
@ThomasBurleson
if any one of the above 6 conditions is removed, it won't crash.
|
@alexfung888 - I will reopen. The crash originates with <ng-template md-tab-label>
<span fxShow>tab 1 with fxShow</span>
</ng-template> |
Here is a Plunkr Demo
|
Thanks. Actually it won't crash if any one of the 6 list conditions are not present. The 6 together is necessary and sufficient for the problem. |
Reverted back to beta 7 for now. I'm not quite sure. Currently running ng 4.0.3, will 4.1 solve the problem? |
The problem appears too with ng 4.1.x, at least in my configuration |
@ThomasBurleson we are seeing this issue as well but we do not use ng-template at all will investigate more and see what the issue derives from. |
My apologies, we missed the upgrade to beta.5 on Material. |
I have updated my code to latest versions of angular libraries (4.1.3), material (2.0.0-beta.5) and flex-layout (2.0.0-beta.8).
Unfortunately I don't have a minimal reproduction plunker but the issue happens in the following site:
The code for the entire site can be found here: Please let me know if I can help in anyway, I would very much like this issue to be resolved in order to publish my migrated angular 4 site. As a side note, I think this also causes an issue when using this scenario in chrome on android, but I was not able to verify that this is the root cause of the problem there (which is worse since the buttons that should open in the popup of the marker are not responding to clicks). |
Directives extending NgClass and NgStyle require deprecated Renderer; while other FlexBox directives require Renderer2. Injecting both Renderers causes intermittent `TypeError: _this._renderer.setStyle is not a function` errors. * Refactor the FxBaseDirective to use a StyleRenderer interface, and * Inject only the Renderer instance into the ClassDirective and StyleDirective constructors Fixes #270
Directives extending NgClass and NgStyle require deprecated Renderer; while other FlexBox directives require Renderer2. Injecting both Renderers causes intermittent `TypeError: _this._renderer.setStyle is not a function` errors. * Refactor the FxBaseDirective to use a StyleRenderer interface, and * Inject only the Renderer instance into the ClassDirective and StyleDirective constructors Fixes #270
I have seen the same issue ... and i have a common component that is used across my app that has this as the first line in the html:
if i use with beta.7 this works fine, however with beta.8 it gets the styling error.
dont know if this help determine the issue. |
* Revert back to Renderer (from Renderer2); Injecting both Renderers causes intermittent `TypeError: _this._renderer.setStyle is not a function` errors. * Refactor the FxBaseDirective to use a StyleRenderer interface Fixes #270
Has Pull Request #298 |
* Revert back to Renderer (from Renderer2); Injecting both Renderers causes intermittent `TypeError: _this._renderer.setStyle is not a function` errors. * Refactor the FxBaseDirective to use a StyleRenderer interface Fixes #270
* Revert back to Renderer (from Renderer2); Injecting both Renderers causes intermittent `TypeError: _this._renderer.setStyle is not a function` errors. * Refactor the FxBaseDirective to use a StyleRenderer interface Fixes #270
I also saw that adding |
No, min-width does nothing for me. Crashes in the same manner. |
This has been fixed and is available in the master builds (but not yet released as a Beta on npm). |
I got
on beta8 but runs smooth on beta7.
After cutting away most of the code, it boils down to this:
\src\app\auth\login\login.component.html
I want to hide a tab (not disable) with 'media$ | async', but the code now crashes with anything in the ngif. Without the ngIf, it won't crash.
however, if I build a new app with just an md-tab and ngif, it won't crash. Some the key is more than mdtab+ngif.
I have just updated everything on 29/4/2017 morning:
trimmed source code:
200b8.zip
The text was updated successfully, but these errors were encountered: