schema-based-json-editor icon indicating copy to clipboard operation
schema-based-json-editor copied to clipboard

angular/core conflict

Open jasminecjc opened this issue 6 years ago • 3 comments

Version(if relevant): 1.0.0

"@angular/core": "^4.0.0"

Environment(if relevant):

Code(if relevant):

// code here

Expected:

Actual:

Unexpected value 'JSONEditorModule' imported by the module 'AppModule'. Please add a @NgModule annotation. My application uses angular 4, and I want to import this library to my application, but it doesn't work, I think it's because this library uses angular 5, is there any solutions?

jasminecjc avatar Apr 12 '18 09:04 jasminecjc

Can you confirm v7.11.1 works with angular@4?

plantain-00 avatar Apr 12 '18 12:04 plantain-00

It seems not

jasminecjc avatar Apr 15 '18 11:04 jasminecjc

I found the Error: Metadata version mismatch for module *** schema-based-json-editor/dist/index.d.ts, found version 4, expected 3, I don't have any motivation to release another angular@4 comparable version.

you can:

  1. update your app to angular@5
  2. fork the code, and change every @angular/* to v4, then release to your own npm package

plantain-00 avatar Apr 16 '18 15:04 plantain-00