manishit56 / Angular4-JsonEditor

Wrapper for jsonedior in angular 4+ application
MIT License
39 stars 17 forks source link

Import and project Not working #18

Open rsinghania opened 6 years ago

rsinghania commented 6 years ago

steps to reproduce defect : @manishit56 @mariohmol

run command npm install --save ang-jsoneditor

in app.module.ts i have added below statement as per Readme. import { NgJsonEditorModule } from 'angular-jsoneditor'

but it gives me error so changed entry as per app.module.ts in Demo application
https://github.com/mariohmol/ang-jsoneditor/blob/master/src/app/app.module.ts

i.e import { NgJsonEditorModule } from 'ang-jsoneditor';

now new error comes out.

ERROR in ./node_modules/ang-jsoneditor/fesm5/ang-jsoneditor.js Module not found: Error: Can't resolve 'jsoneditor' in 'D:\Rakesh_kumar_Singhania\MoneyMarket\UI-Code-Workspave\pricing-platform-ui\node_modules\ang-jsoneditor\fesm5' i 「wdm」: Failed to compile.

mariohmol commented 6 years ago

npm i jsoneditor , check this out https://stackblitz.com/edit/angular-json-editor