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