Skip to content

No such file or directory, scandir 'email-templates' #1

@ImanMahmoudinasab

Description

@ImanMahmoudinasab

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:15

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions