Sage 9 with TailwindCss yarn build:production is missing styles. The most suggested fix is not working for me

hello,

did you try to upgrade Tailwind to 1.4?

yarn add -D tailwindcss

then modifiy the tailwind.config.js AND CHECK THE PATHS

const { PWD } = process.env; // This will not have a trailing slash

module.exports = {
  purge: {
     content: [
      `${PWD}/resources/views/**/*.blade.php`,
      `${PWD}/resources/views/layouts/*.blade.php`,
      `${PWD}/resources/views/partials/*.blade.php`,
      `${PWD}/resources/assets/scripts/**/*.{js,vue}`,
    ],
  },

see: Using Tailwind CSS 1.4’s built-in PurgeCSS Options with Sage 9