jovotech / jovo-templates

💬 Code Patterns and Templates for Jovo Voice Apps
https://www.jovo.tech
Apache License 2.0
27 stars 30 forks source link

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

Open mandar-raj opened 4 years ago

mandar-raj commented 4 years ago

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:

jankoenig commented 4 years ago

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?