Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module './apl/undefined/document.json' #53

Open
mandar-raj opened this issue Jun 28, 2020 · 1 comment
Open

Cannot find module './apl/undefined/document.json' #53

mandar-raj opened this issue Jun 28, 2020 · 1 comment

Comments

@mandar-raj
Copy link

hi
i just launch invocation getting below error

apl/undefined/document.json

Error -----------------------------------------------------------------

Code:
MODULE_NOT_FOUND

Message:
Cannot find module './apl/undefined/document.json'
Require stack:

  • C:\Users\hp 1\AppData\Roaming\npm\alexa-apl\src\app.js
  • C:\Users\hp 1\AppData\Roaming\npm\alexa-apl\src\index.js

Stack:
Error: Cannot find module './apl/undefined/document.json'
Require stack:

  • C:\Users\hp 1\AppData\Roaming\npm\alexa-apl\src\app.js
  • C:\Users\hp 1\AppData\Roaming\npm\alexa-apl\src\index.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:966:15)
    at Function.Module._load (internal/modules/cjs/loader.js:842:27)
    at Module.require (internal/modules/cjs/loader.js:1026:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at AlexaSkill.ShowTemplateIntent (C:\Users\hp 1\AppData\Roaming\npm\alexa-apl\src\app.js:39:22)
    at Function.applyHandle (C:\Users\hp 1\AppData\Roaming\npm\alexa-apl\node_modules\jovo-core\src\plugins\Handler.ts:177:35)
    at handle (C:\Users\hp 1\AppData\Roaming\npm\alexa-apl\node_modules\jovo-core\src\plugins\Handler.ts:239:19)
    at Middleware.run (C:\Users\hp 1\AppData\Roaming\npm\alexa-apl\node_modules\jovo-core\src\core\Middleware.ts:85:11)
    at App.handle (C:\Users\hp 1\AppData\Roaming\npm\alexa-apl\node_modules\jovo-core\src\core\BaseApp.ts:274:7)
    at App.handle (C:\Users\hp 1\AppData\Roaming\npm\alexa-apl\node_modules\jovo-framework\src\App.ts:333:5)

@jankoenig
Copy link
Member

This is the part in the app.js where it's throwing the error:

const document = require(`./apl/${template.id}/document.json`);

The error message states it can't find apl/undefined/document.json, so it seems like the template input isn't set.

How are you testing it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants