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.

Errors on initial import

See original GitHub issue

Created a blank project using Node v12.17.0 which now has ESM module support ready for primetime (no longer requires a flag) so I’m not using babel (which might be the problem?).

Getting the error:

import { QAClient } from 'question-answering';
         ^^^^^^^^
SyntaxError: The requested module 'question-answering' does not provide an export named 'QAClient'

Tried to do a quick debug and everything seems fine but as soon as I saw the typescript file I freaked out 😉 don’t really have an expereince with it so unsure if this is the issue. Would be awesome if the package worked with vanilla Node ESM module imports though.

So I switched to commonjs const { QAClient } = require("question-answering"); and now I’m getting the error:

internal/modules/cjs/loader.js:1188
  return process.dlopen(module, path.toNamespacedPath(filename));
                 ^

Error: The specified module could not be found.
\\?\L:\Training datasets\New folder\node_modules\@tensorflow\tfjs-node\lib\napi-v5\tfjs_binding.node
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:1188:18)
    at Module.load (internal/modules/cjs/loader.js:986:32)
    at Function.Module._load (internal/modules/cjs/loader.js:879:14)
    at Module.require (internal/modules/cjs/loader.js:1026:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (L:\Training datasets\New folder\node_modules\@tensorflow\tfjs-node\dist\index.js:58:16)
    at Module._compile (internal/modules/cjs/loader.js:1138:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
    at Module.load (internal/modules/cjs/loader.js:986:32)
    at Function.Module._load (internal/modules/cjs/loader.js:879:14)

Even without any code and just the require.

There’s mention of this in #7 but no conclusion.

And I have run npx question-answering download.

Also tried 2.x and 3.x versions.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
SeanBannistercommented, Jul 2, 2020

Brilliant, that appears to be the issue, running as expected now 😃 thanks again for your help with this. Looking forward to playing around with it.

0reactions
Pierrcicommented, Jul 2, 2020

Actually I just published the final version of the v3, so you can just do npm i question-answering@latest 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

6 Common CSV Import Errors and How to Fix Them - Flatfile
One of the most common CSV import errors is that the file is simply too large. That can be caused by too many...
Read more >
Review and troubleshoot import errors
Learn how to view and troubleshoot common errors that occur during record imports.
Read more >
Data Import error message reference - Analytics Help
Message Meaning So... Empty column header at column number X. The upload file is missing a column header. Ed... Multiple errors occurred: List of multiple...
Read more >
Error in initial import · Issue #7 · ypeleg/HungaBunga - GitHub
When importing, I get the error: from regression import HungaBungaRegressor ModuleNotFoundError: No module named 'regression'
Read more >
ILMT Errors in initial import data - Forums - IBM Support
Facing the same issue, the intial import stops at 33% with the below error. 2018-07-19 14:24:36 (+0:00:00.312) ERROR: (ImportThread) ...
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