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

ERR_INVALID_ARG_TYPE "path" #12

Open
marvictifora opened this issue Dec 1, 2020 · 2 comments
Open

ERR_INVALID_ARG_TYPE "path" #12

marvictifora opened this issue Dec 1, 2020 · 2 comments

Comments

@marvictifora
Copy link

after doing what instructed my email fails to send and returns this error.

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
at validateString (internal/validators.js:120:11)
at Object.resolve (path.js:980:7)
at ExpressHandlebars._resolveLayoutPath (/home/marvic/Documents/email_schedule/node_modules/nodemailer-handlebars/node_modules/express-handlebars/lib/express-handlebars.js:342:17)
at ExpressHandlebars. (/home/marvic/Documents/email_schedule/node_modules/nodemailer-handlebars/node_modules/express-handlebars/lib/express-handlebars.js:223:35) {
code: 'ERR_INVALID_ARG_TYPE'

am i doing something wrong???

@PManager1
Copy link

yes same fucking issue.

@anirudhmalik
Copy link

transporter.use('compile', hbs({
viewEngine: **{
defaultLayout: false // <----- added this
},**
viewPath: './views/'
}));

add defaultLayout: false

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

3 participants