Closed christianbundy closed 1 month ago
Hi @christianbundy,
I don't see postcss-font-magician
in that stacktrace, why do you think this is related to this plugin?
I don't know anything of Tailwind so I can't debug this without a complete but minimal reproduction :)
I don't see postcss-font-magician in that stacktrace, why do you think this is related to this plugin?
Thanks! I should've mentioned that part: this happens as soon as I create a postcss-font-magician config for the font I'm using. I'll try to put together a complete repro, thanks for the quick response.
I think this might be a me problem:
module.exports = {
plugins: [tailwindcss(tailwindConfig), ['postcss-font-magician',{
variants: {
'Roboto Condensed': {
'300': [],
'400': [],
'700': []
}
},
foundries: ['google']
}]]
}
I think I confused webpack rule syntax with postcss plugin syntax. 🤦 Sorry for the noise!
In case anyone else runs into this issue, here's my fixed postcss config:
/* eslint-env node */
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
'postcss-font-magician': {
variants: {
'Roboto Condensed': {
'300': [],
'400': [],
'700': []
},
foundries: ['google'],
},
},
}
I'm able to reproduce an exception when running this with Tailwind, and thought I'd make a quick issue in case others had a similar problem:
Here's my postcss config:
My Tailwind config:
And my
index.css
, which used to have the usual tailwind directive, but I've reduced to a minimal:Please let me know if there's anything I can do to help debug! I added some
console.log
statements in the stack trace to see what the value ofinput
was, but everything I logged wasundefined
, which wasn't super helpful. Cheers!