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
Bug: using @apply with prose prevents re-render #899
Comments
Found the issue, it's not a
That line compiles Tailwind with a config set to an empty object. It happens both when developing locally and when using Maizzle programmatically. When you start the dev server, Tailwind is compiled correctly using your We're using lodash.get here so updating the fallback to be basically - config: get(options, 'tailwind.config', {})
+ config: get(options, 'tailwind.config') I'll also change that Had it been like that you would have immediately noticed the issue with
Thanks for spotting this, it's a pretty nasty bug. And by all means, please do keep these super edgy bug reports coming 😅 This is the sort of stuff that helps make Maizzle better and I truly appreciate it 🙌 |
Found another bug that I'm not sure yet when it was introduced, looks like beta.9 outputs the file at a wrong location when developing locally, i.e. in |
Thanks man very much appreciate your effort in this as well! Where is the best place to send donations for your endeavors? 😁 |
The best way to support Maizzle will be mailviews.com, which we'll soon release an announcement about ;) |
Fixed it in #901, some paths were not normalized and that was causing issues on Windows. Curious nobody reported it so far, guess most beta users are on a Mac 😅 |
Released |
Works like a charm! 🥳 Thanks! |
@cossssmin do you have an ETA for mail views? |
This is a very odd bug I just discovered and I'm actually not even sure if it's a maizzle or tailwind thing:
When using
@apply
with theprose
class and applying it to any html element the template rendering won't work anymore.Using
prose
on the element directly though works but only if the file is not updated directly but another one instead. This is kinda hard to explain and is better to understand by checking it out yourself.To reproduce, clone https://github.com/jsbrain/maizzle-render-bug and checkout the
prose-bug
branch. Start the server and follow the instructions insrc/templates/nested/nested.md
.This might be related to #885 but I'm not sure.
The weird thing to me is not even that using
@apply prose;
and applying the custom class to an element causes an error, that could happen for whatever reason but the fact that even just usingprose
directly on an element seems to somehow cause a partial error on the styling while keeping the other applied classes/styles intact.So this makes it questionable if it's actually a "prose compatibility thing" or again some kind of cache issue because why would it work when saving one file but not saving another?!
Sorry I keep coming up with those super "edgy" bugs 😵💫
The text was updated successfully, but these errors were encountered: