Skip to content
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

angular/core conflict #15

Open
jasminecjc opened this issue Apr 12, 2018 · 3 comments
Open

angular/core conflict #15

jasminecjc opened this issue Apr 12, 2018 · 3 comments

Comments

@jasminecjc
Copy link

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?

@plantain-00
Copy link
Owner

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

@jasminecjc
Copy link
Author

It seems not

@plantain-00
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants