jsonforms icon indicating copy to clipboard operation
jsonforms copied to clipboard

NG0300: Multiple components match node with tagname button: MatLegacyButton and MatButton error

Open nilam-jadhav opened this issue 1 year ago • 10 comments

Describe the bug

I am using below JSON form package: "@jsonforms/angular": "^3.0.0", "@jsonforms/angular-material": "^3.0.0", "@jsonforms/core": "^3.0.0", Ans recently upgraded to Angular V15 where using legacy material component, after upgrading to V15 from, getting below error:

core.mjs:8400 ERROR Error: NG0300: Multiple components match node with tagname button: MatLegacyButton and MatButton. Find more at https://angular.io/errors/NG0300

Tried with v3.1.0 still issue persists.

After commenting JsonFormsAngularMaterialModule import, issue doesnt persist, but i need this import in my application so how to get rid of this error can you help me to resolve this issue?

Expected behavior

Thre should not be any error

Steps to reproduce the issue

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Screenshots

No response

In which browser are you experiencing the issue?

Every

Which Version of JSON Forms are you using?

v3.0.0

Framework

Core, Angular

RendererSet

Material

Additional context

No response

nilam-jadhav avatar Dec 27 '23 09:12 nilam-jadhav

Hi @nilam-jadhav , JsonForms 3.0.0 and 3.1.0 are not compatible with Angular 15+. You can try pre-release version 3.2.0-alpha.4. This includes support for Angular 15. I'll close this issue. You can re-open it if you continue having problems.

lucas-koehler avatar Jan 02 '24 08:01 lucas-koehler

We will update to Angular 16/17 very soon and therefore will no longer be compatible with Angular 15.

sdirix avatar Jan 02 '24 08:01 sdirix

Even after upgrading to mentioned version same issue is coming.

nilam-jadhav avatar Jan 11 '24 06:01 nilam-jadhav

@lucas-koehler I am not able to reopen this issue, can you please reopen? or Do I have to open new issue and link this one?

nilam-jadhav avatar Jan 11 '24 06:01 nilam-jadhav

Hi @nilam-jadhav , sure. Just to be clear, when using Angular 16 or 17, did you also use the latest pre-release version 3.2.0-beta.0 when re-testing this?

lucas-koehler avatar Jan 11 '24 07:01 lucas-koehler

Hi @lucas-koehler I am using Angular 15 with angular-material legacy component, and tried upgrading to version 3.2.0-beta.0 after your comment , now build is failing: image

nilam-jadhav avatar Jan 11 '24 08:01 nilam-jadhav

Hi @nilam-jadhav , after moving to 3.2.0-beta.0, did you also upgrade to Angular 16 or 17? Angular 15 does not work anymore with this.

lucas-koehler avatar Jan 11 '24 11:01 lucas-koehler

@lucas-koehler No, I haven't upgraded to Angular 16, its Angular 15 with 3.2.0-beta.0

nilam-jadhav avatar Jan 12 '24 05:01 nilam-jadhav

@lucas-koehler Any update?

nilam-jadhav avatar Jan 17 '24 06:01 nilam-jadhav

@nilam-jadhav No, did you try it with Angular 16 and get the same result? It is not expected to work with Angular 15

lucas-koehler avatar Jan 17 '24 08:01 lucas-koehler

Closing this as it does not concern the current version. If there are any more questions, feel free to ask in the community forum :)

lucas-koehler avatar Jul 05 '24 09:07 lucas-koehler