question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Import from `@clientio/rappid-visio` to Angular (11)

See original GitHub issue

Hi!

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:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
kumilinguscommented, Jun 1, 2021

Hi @GeorgiyZhuravlev , you can remove module property from package.json inside of the rappid-visio.tgz for the time being. We need some time to investigate this. Thank you.

0reactions
GeorgiyZhuravlevcommented, Jun 1, 2021

I’ll try to find

"skipLibCheck": true in tsconfig.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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found