Closed alikabeer32 closed 4 years ago
Update: I put it in an async function but now I get this error: Error: The specified module could not be found. \?\C:\project\node_modules\question-answering\node_modules\@tensorflow\tfjs-node\lib\napi-v5\tfjs_binding.node
It seems your problem is related to the underlying TensorFlow library. Can you try running npm i @tensorflow/tfjs-node
in your project to be sure it's correctly installed and try again?
I get the same issue as @alikabeer32
I've run the npm i above and have the following package.json
"@tensorflow/tfjs-node": "^1.7.4",
"question-answering": "^2.0.1"
Any sugggestions?
I'm on node version v10.13.0 btw
Which issue are you referring to exaclty @braaannigan? The one from the first message or the second message?
Hi @Pierrci I think I fixed this by updating all my versions of node/npm etc. Have had a computer rebuild in the interim, so can't provide any more detail unfortunately.
Great! Closing this for now, feel free to reopen if needed.
my code:
Error :
SyntaxError: await is only valid in async function at wrapSafe (internal/modules/cjs/loader.js:1063:16) at Module._compile (internal/modules/cjs/loader.js:1111:27) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1167:10) at Module.load (internal/modules/cjs/loader.js:996:32) at Function.Module._load (internal/modules/cjs/loader.js:896:14) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12) at internal/main/run_main_module.js:17:47