Open root30 opened 5 years ago
v7.20.1 should fix this. You may need to uninstall it first.
Great, thank you! Works as intended.
I closed this issue too early. I somehow still fail to run your module properly:
ERROR in node_modules/angular-schema-based-json-editor/dist/index.component.d.ts(66,35): error TS2307: Cannot find module schema-based-json-editor/node_modules/markdown-tip.
node_modules/schema-based-json-editor/dist/index.d.ts(385,8): error TS1192: Module "<path to project>/node_modules/@types/dragula/index" has no default export.
node_modules/schema-based-json-editor/dist/index.d.ts(386,8): error TS1192: Module "<path to project>/node_modules/@types/highlight.js/index" has no default export.
The first issue caused by the generated code by ngc
from markdownTipLocale: defaultMarkDownTipLocale,
to markdownTipLocale: import("schema-based-json-editor/node_modules/markdown-tip").Data[];
, I don't know why.
The 2nd and 3nd issues seems can be solved by enabling esModuleInterop
in tsconfig.json
I investigated it later, and found it is caused by typescript, v7.20.2 should fix the first issue
Version: 7.20.0
I run Angular 7:
CLI:
"@angular/cli": "^7.0.4"
and I have issues installing/using your module.
Code:
And if I install the dependencies manually and run the app:
Can you reproduce this issue?