I'm getting errors when attempting to add this plugin to my tailwind.config.mjs file. I assume it's something incompatible with the CommonJS format of the imported file.
// @ts-check
import opentype from 'tailwindcss-opentype'
// ...
{
// ... rest of config here
plugins: [
opentype
]
}
The error is:
Type 'typeof import("/some/path/node_modules/tailwindcss-opentype/dist/index")' is not assignable to type 'PluginCreator | { handler: PluginCreator; config?: Partial<Config>; } | { (options: any): { handler: PluginCreator; config?: Partial<...>; }; __isOptionsFunction: true; }'.ts(2322)
Hello, nice looking plugin, thank you!
I'm getting errors when attempting to add this plugin to my tailwind.config.mjs file. I assume it's something incompatible with the CommonJS format of the imported file.
The error is: