I’d recommend keeping the .js extension and “use import instead” per the error message.
- Import the
typographyplugin at the top of the file using the ESM syntax:
import typography from '@tailwindcss/typography';
- Add the
typographyplugin to thepluginsarray in your config file:
module.exports = {
// ...
plugins: [
// ...
typography,
],
};