-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't workingSomething isn't working
Description
If while the tool is running if one changes the email templates directory name and updates templatesDir config in jsx-email-builder.json the tool will show the following error and won't use the new directory, so they have to stop and start the tool.
Error: ENOENT: no such file or directory, scandir 'email-templates'
at Object.readdirSync (node:fs:1438:3)
at traverseDir (file:///Users/user/email-templates/node_modules/jsx-email-builder/engine/template-finder.js:9:22)
at getEmailTemplatesList (file:///Users/user/email-templates/node_modules/jsx-email-builder/engine/template-finder.js:31:3)
at getRoutesOfTemplates (file:///Users/user/email-templates/node_modules/jsx-email-builder/engine/router.js:12:26)
at file:///Users/user/email-templates/node_modules/jsx-email-builder/engine/home-page.js:24:20
at Layer.handle [as handle_request] (/Users/user/email-templates/node_modules/express/lib/router/layer.js:95:5)
at next (/Users/user/email-templates/node_modules/express/lib/router/route.js:144:13)
at Route.dispatch (/Users/user/email-templates/node_modules/express/lib/router/route.js:114:3)
at Layer.handle [as handle_request] (/Users/user/email-templates/node_modules/express/lib/router/layer.js:95:5)
at /Users/user/email-templates/node_modules/express/lib/router/index.js:284:15Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working