Tailwind Config: Why does module.exports
work in my case, but export default
doesn't?
#953
Labels
question
Further information is requested
main.css:1:1: The
text-largeclass does not exist. If
text-largeis a custom class, make sure it is defined within a
@layerdirective.
package.json
has this line"type": "module"
text-large
is defined in mytailwind.config.ts
:main.css
I was only able to fix the issue by changing
export default
tomodule.exports
and I wonder why? Am I not using ECMA module due to the"type": "module"
option in mypackage.json
?The text was updated successfully, but these errors were encountered: