NG-ZORRO / ng-zorro-antd

Angular UI Component Library based on Ant Design
https://ng.ant.design
MIT License
8.87k stars 3.94k forks source link

Several warnings about the component radio (Cannot read properties of undefined (reading 'type')) #7355

Open sawa-ko opened 2 years ago

sawa-ko commented 2 years ago

Steps to reproduce

Use the latest version and SSR.

What is expected?

No warnings / errors.

What is actually happening?

I get the following warning in the console every time I log in to the application.

1 rules skipped due to selector errors:
  span.ant-radio * -> Cannot read properties of undefined (reading 'type')
Environment Info
ng-zorro-antd 13.1.1
Browser Microsoft Edge Versión 100.0.1185.29
ljfass commented 2 years ago

解决了吗

sawa-ko commented 2 years ago

@ljfass It happens with SSR.

sawa-ko commented 2 years ago

@vthinkxie You can help? Sorry about the ping

cipchk commented 2 years ago

看起来像是 https://github.com/angular/universal/issues/2627 引起,等修复

sawa-ko commented 2 years ago

@cipchk A commit https://github.com/angular/universal/commit/35a477e115d52fdad13e993753ad136f0466af1e was already implemented and a new version was released and the problem persists.

image

cipchk commented 2 years ago

@kaname-png Delon 之前也有出现这个错误,但是将 Angular 升级至 13.3.3 以后不再出现了。

sawa-ko commented 2 years ago

@cipchk I have the latest version of angular (13.3.3) and the problem persists.

eclipseHOOT commented 2 years ago

您好,请问您后面是怎么样解决的?求助

eclipseHOOT commented 2 years ago

@kaname-png

marct83 commented 2 years ago

Did this get fixed? I'm seeing it on v14

pavel-suk commented 2 years ago

Same for me, also having issue with icons

hackeryutu commented 2 years ago

我也出现了

marct83 commented 2 years ago

I'm also seeing this along with the warning..

image

crileiton commented 1 year ago

any solution?

tossp commented 1 year ago

ping

ifuyun commented 1 year ago

+1 Angular: 15.2.0 ng-zorro-antd: 15.0.3

Drunkenpilot commented 1 year ago

In server.ts file Try this:

app.engine('html',  ngExpressEngine({
      bootstrap: AppServerModule,
     /*
      *@DISABLE inlineCriticalCss
      */
      inlineCriticalCss: false,
    }))
KangHidro commented 1 year ago

+1 Angular 15 ng-zorro-antd: 15.1.0