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 'macro' results error

See original GitHub issue

https://kitware.github.io/vtk-js/docs/develop_class.html

I am following this tutorial to create new vtk.js class,

but it results error when

when I use

import macro from 'vtk.js/Sources/macro';

it results error saying

node_modules\vtk.js\Sources\macro.js:1
(function (exports, require, module, __filename, __dirname) { import vtk from './vtk';
                                                                     ^^^

SyntaxError: Unexpected identifier

How can I make a new vtk.js class without error?

Thanks

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:30 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
jourdaincommented, Nov 18, 2020

Which version of kw-web-suite got pulled in? You may have to specify an older version. Like the one currently used in package.json.

Should do npm install kw-web-suite@10.0.0 instead of npm install kw-web-suite

FYI @floryst

1reaction
jourdaincommented, Nov 18, 2020

I’m developing on macOS, so I’m pretty sure that won’t be an issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Macro Error - Microsoft Support
The Macro Error message appears when there is an error in the macro that you were running. The specified method cannot be used...
Read more >
Solved: Simple import macro error - SAS Support Communities
I am trying to import files that start with the same name: Combined (e.g., Combined1.csv, Combined2.csv, Combined3.csv).
Read more >
Solved: Batch Import Macro - Errors in "File Not Found" an...
I am having trouble getting a batch import macro to work, as I keep getting error messages. The first error message I get...
Read more >
Error on a failed Upload and Import File macro. - IBM
Cause. Records with no values in the import file are stopping the data import. The Oracle Import Table does not allow NULL columns....
Read more >
"It looks like the results file you want to import is the wrong ...
It looks like the results file you want to import is the wrong type of file or it's incomplete. Check the results file...
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