maizzle / framework

Quickly build HTML emails with Tailwind CSS.
https://maizzle.com
MIT License
1.24k stars 49 forks source link

TypeError: Cannot read property 'tags' of undefined #77

Closed Blake32p closed 4 years ago

Blake32p commented 4 years ago

Description:

When attempting Maizzle Serve on a project I get the following error.

✖ Build failed TypeError: Cannot read property 'tags' of undefined at Object.module.exports.init (/node_modules/@maizzle/framework/src/nunjucks/index.js:7:23) at module.exports (/node_modules/@maizzle/framework/src/generators/output/toString.js:62:48) at asyncForEach (/node_modules/@maizzle/framework/src/generators/output/toDisk.js:49:18)

Steps To Reproduce:

Originally I started getting this error today on a project I had been working on for a while, but I tried creating a new project and continue to get the error. I tried using different node versions but I still get the same error. I also tried on two different Mac computers and get the same error.

cossssmin commented 4 years ago

Checking, I might have screwed something up in https://github.com/maizzle/framework/commit/6beb37aaec37c2fce63a438b88137d73ef07e220

Thanks for reporting!

cossssmin commented 4 years ago

Yeah... wanted to not have a breaking change, but forgot to check if build.nunjucks actually exists in your config, and fallback if it doesn't 🤦‍♂️

Will tag 0.6.1 right away, sorry about that!

cossssmin commented 4 years ago

Published v0.6.1, please update. And again, sorry for the trouble!

Blake32p commented 4 years ago

Thanks for fixing this so quickly!