I ran into the same issue, eventually fixed it by using the node-modules of the web directory. Posting the tailwind.config.js for anyone else facing the issue.
/** @type {import('tailwindcss').Config} */
const withMT = require('@material-tailwind/react/utils/withMT')
module.exports = withMT({
content: [
'src/**/*.{js,jsx,ts,tsx}',
'../node_modules/@material-tailwind/react/components/**/*.{js,ts,jsx,tsx}',
'../node_modules/@material-tailwind/react/theme/components/**/*.{js,ts,jsx,tsx}',
],
theme: {
extend: {},
},
plugins: [],
})