Hi guys, I accidentally upgraded my ASK CLI V1 to ASK CLI V2 yesterday. I then changed the directory structure of my skill as described in the instructions: https://developer.amazon.com/de-DE/docs/alexa/smapi/ask-cli-v1-to-v2-migration-guide.html
I could also update the skill. But now I get this error when I call up the skill:
{ "errorType": "Runtime.ImportModuleError", "errorMessage": "Error: Cannot find module './dispatcher/error/mapper/GenericErrorMapper'\nRequire stack:\n- /var/task/node_modules/ask-sdk-runtime/dist/index.js\n- /var/task/node_modules/ask-sdk-core/dist/attributes/AttributesManagerFactory.js\n- /var/task/node_modules/ask-sdk-core/dist/index.js\n- /var/task/node_modules/ask-sdk/dist/skill/factory/StandardSkillFactory.js\n- /var/task/node_modules/ask-sdk/dist/index.js\n- /var/task/index.js\n- /var/runtime/UserFunction.js\n- /var/runtime/index.js", "stack": [ "Runtime.ImportModuleError: Error: Cannot find module './dispatcher/error/mapper/GenericErrorMapper'", "Require stack:", "- /var/task/node_modules/ask-sdk-runtime/dist/index.js", "- /var/task/node_modules/ask-sdk-core/dist/attributes/AttributesManagerFactory.js", "- /var/task/node_modules/ask-sdk-core/dist/index.js", "- /var/task/node_modules/ask-sdk/dist/skill/factory/StandardSkillFactory.js", "- /var/task/node_modules/ask-sdk/dist/index.js", "- /var/task/index.js", "- /var/runtime/UserFunction.js", "- /var/runtime/index.js", " at _loadUserApp (/var/runtime/UserFunction.js:100:13)", " at Object.module.exports.load (/var/runtime/UserFunction.js:140:17)", " at Object.<anonymous> (/var/runtime/index.js:43:30)", " at Module._compile (internal/modules/cjs/loader.js:1133:30)", " at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10)", " at Module.load (internal/modules/cjs/loader.js:977:32)", " at Function.Module._load (internal/modules/cjs/loader.js:877:14)", " at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)", " at internal/main/run_main_module.js:18:47" ] }
Why does this error occur and how can I fix it?