TypeError: wrapWithResCheck is not a function - error

While running this command:

C:\Projects>node stardog-react\src\data\load-data.js

I am getting the following error - any idea why?

Creating StarWarsDB...

    .then(wrapWithResCheck(() => query.execute(conn, dbName, insertQuery)))

TypeError: wrapWithResCheck is not a function
    at loadData (C:\Projects\stardog-react\src\data\load-data.js:19:11)
    at Object.<anonymous> (C:\Projects\stardog-react\src\data\load-data.js:24:1)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Function.Module.runMain (module.js:693:10)
    at startup (bootstrap_node.js:191:16)
    at bootstrap_node.js:612:3

The command comes from https://www.stardog.com/tutorials/stardog-react-5-easy-steps/

Hi Radu,

Can you paste the contents of C:\Projects\stardog-react\src\data\load-data.js and C:\Projects\stardog-react\src\helpers\wrapWithResCheck.js here?


That is right - it was empty - saved it and onto the next error


This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.