Import from `@clientio/rappid-visio` to Angular (11)
See original GitHub issueHi!
We’re trying to implement import/export to Visio in our Angular app (v11)
Attempt to import anything from @clientio/rappid-visio
produces errors shown below.
Reproducible with the demo app apps / Chatbot / Angular10
(closest version to ours) if extended with:
// package.json
"@clientio/rappid-visio": "file:rappid/rappid-visio.tgz",
// somewhere in the code
import { VisioArchive } from '@clientio/rappid-visio';
...
// use VisioArchive
Could you give us a hint on how to resolve it, please?
ERROR in ./node_modules/@clientio/rappid-visio/src/formulas/FormulaParser.mjs 5:43-49
Can't import the named export 'Parser' from non EcmaScript module (only default export is available)
ERROR in ./node_modules/@clientio/rappid-visio/src/models/VisioSection.mjs 230:12-13
Can't import the named export 'V' from non EcmaScript module (only default export is available)
ERROR in ./node_modules/@clientio/rappid-visio/src/models/VisioShape.mjs 279:21-22
Can't import the named export 'V' from non EcmaScript module (only default export is available)
ERROR in ./node_modules/@clientio/rappid-visio/src/models/VisioShape.mjs 294:21-22
Can't import the named export 'V' from non EcmaScript module (only default export is available)
ERROR in ./node_modules/@clientio/rappid-visio/src/display/shape.mjs 61:22-23
Can't import the named export 'V' from non EcmaScript module (only default export is available)
ERROR in ./node_modules/@clientio/rappid-visio/src/display/shape.mjs 101:29-30
Can't import the named export 'V' from non EcmaScript module (only default export is available)
....
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Guide to update your Angular application v8.2 -> v11.0 for ...
Guide to update your Angular application v8.2 -> v11.0 for basic applications ... Importing via string is removed in v9. ng update should...
Read more >Correct way of importing and using lodash in Angular
Importing lodash or any javascript library inside angular: step-1: Install the libarary(lodash)
Read more >Problem with import in Angular 11 · Issue #31 - GitHub
Hi, I'm getting this error after installing the modules and any help would be great. node_modules/@jsonforms/core/lib/actions/index.d.ts:1:8 ...
Read more >Failed to compile in Angular 11 application | DataViewsJS
I have a problem with compiling DataViewJS in my Angular 11 ... [b]import { DataViewModule } from '@grapecity/dataviews.angular'; ...
Read more >Import & export in ES6/Angular - Futurum Technology
This is due to the fact that Angular heavily relies on JavaScript ES6 and the 'imports' are part of it. But what exactly...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @GeorgiyZhuravlev , you can remove
module
property frompackage.json
inside of therappid-visio.tgz
for the time being. We need some time to investigate this. Thank you."skipLibCheck": true
intsconfig.json
saved the day 😃I saw this somewhere in your documentation, but since
@clientio/rappid
(not visio related) was OK without it, I thought it’s not the case anymore.Anyway, thank you!