-1
I’m starting to learn a few things about Ode and for that I’m creating a chatbot using Blip. But I want to do this with an external js by making the connection. However I am having a problem trying to run my Ode apication. I’ll leave a print below to make it clearer.
If it is not clear in the photo, this is the mistake:
PS C:\Testes\Take_chatbot> node index
C:\Testes\Take_chatbot\index.js:1
import * as BlipSdk from 'blip-sdk';
^^^^^^
SyntaxError: Cannot use import statement outside a module
at Module._compile (internal/modules/cjs/loader.js:895:18)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
at Module.load (internal/modules/cjs/loader.js:815:32)
at Function.Module._load (internal/modules/cjs/loader.js:727:14)
at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10)
at internal/main/run_main_module.js:17:11
PS C:\Testes\Take_chatbot>
By my understanding js is not finding the two files I have listed in the Imports, but how can I resolve this error? These folders actually exist.
Great explanation. I understood and worked perfectly in my code. Thanks @user140828
– SaMuK