aanckar / react-pdf-tailwind

Use Tailwind CSS to style PDFs created with react-pdf
308 stars 11 forks source link

Reference to file tailwindcss/resolveConfig #19

Closed Damien-Lev closed 5 months ago

Damien-Lev commented 1 year ago

Hello, i got this error : image

i'm using symfony ux-react, with webpack-encore.

I'm maybe missing some configuration somewhere :'(

Here are some files that may be interesting to help me:

tailwind.config.js image

postcss.config.js image

webpack.config.js image

msichterman commented 1 year ago

I am also getting this same error

msichterman commented 1 year ago

@Damien-Lev adding this to my webpack config fixes the issue

resolve: {
    extensions: ['.css', '.js', '.jsx', '.tsx', '.ts', '.cjs'],
    alias: {
      'tailwindcss/resolveConfig': 'tailwindcss/resolveConfig.js',
    },
  },
EnriqueWolf commented 9 months ago

The issue is also with Typescript. I added a path on compilerOptions in tsconfig.json but didn't work. "paths": { "tailwindcss/resolveConfig": ["node_modules/tailwindcss/resolveConfig.js"] }

2023-11-01_16h10_54

utopyin commented 8 months ago

same issue on typescript!

aanckar commented 7 months ago

This is now hopefully fixed in 2.2.0