plantain-00 / schema-based-json-editor

A reactjs and vuejs component of schema based json editor.
MIT License
168 stars 38 forks source link

Cannot find module '../typings/lib'. #3

Open numerized opened 7 years ago

numerized commented 7 years ago

Thanks a lot for this JSON-EDITOR,

I'm really happy I can reuse my old schema in angular2 but the following bug happens.

Version(if relevant): 1.0.0

Latest "schema-based-json-editor": "^5.0.0"

Environment(if relevant):

Ionic 3.6.0

Error:

The following error appears 6 times: typescript: node_modules/schema-based-json-editor/angular.d.ts, line: 7 Cannot find module '../typings/lib'.

   L6:  schema: common.Schema;
   L7:  initialValue: common.ValueType;
   L8:  updateValue: EventEmitter<common.ValidityValue<string | number | boolean | any[] | {

And the next one, one time: typescript: node_modules/schema-based-json-editor/common.d.ts, line: 1 File '/Users/numerized/Work/00_Github/vitapp-ionic2-couch-editor/node_modules/src/lib.d.ts' not found.

plantain-00 commented 7 years ago

This is a release script bug, v5.0.1 should fix this.

numerized commented 7 years ago

I looks like yes! so fast!

now this one still here:

typescript: node_modules/schema-based-json-editor/common.d.ts, line: 1 File '/Users/numerized/Work/00_Github/vitapp-ionic2-couch-editor/node_modules/src/lib.d.ts' not found.

   L1:  import * as toNumber from "lodash.tonumber";
   L2:  import * as toInteger from "lodash.tointeger";
numerized commented 7 years ago

I deleted

/// <reference path="../src/lib.d.ts" />

from

node_modules/schema-based-json-editor/common.d.ts

It looks ok now

plantain-00 commented 7 years ago

v5.0.2 just delete that, it should be OK now.

numerized commented 7 years ago

I've installed 5.0.2 and yes it's ok Thanks a lot !