question

newuser-ea5c6207-0008-4d79-9e05-deaef62b735d avatar image

Unable to import module 'index': Error

Hi, I followed the instructions here: https://github.com/alexa/skill-sample-nodejs-fact-in-skill-purchases/issues/6, but I'm getting the following error in the cloud log. What does it mean and how can I correct it?

Unable to import module 'index': Error
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (/var/task/index.js:6:15)
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)

I'm also seeing the following error in my terminal:

Error(s) found in the deploy setting for the following in-skill product(s):
(Please restore the missing file or modify skill configuration file .ask/config to fix the deploy setting)

Missing file: [ID] undefined [FILE] isps/entitlement/Entitlement_Template.json

alexa skills kitpurchasing
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Anand@Amazon avatar image
Anand@Amazon answered

Hello there,

Thanks for posting !!!
It looks like you have already resolved your issue.

2 comments
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Please help me as I am also getting this issue.

0 Likes 0 ·
Anand@Amazon avatar image Anand@Amazon ♦ newuser-945222dc-fe5a-4189-825c-c4ac5aa5b8c1 ·

Hello Developer,

Thanks for reaching out to us.

Can you raise contact - us case to us as we require more details?

0 Likes 0 ·