aanckar / react-pdf-tailwind

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

ERROR in ./node_modules/react-pdf-tailwind/dist/index.mjs #2

Closed HamzaLinge closed 1 year ago

HamzaLinge commented 1 year ago

ERROR in ./node_modules/react-pdf-tailwind/dist/index.mjs 1:0-54 Module not found: Error: Can't resolve 'tailwindcss/resolveConfig' in 'C:\Users\Baghdad\Desktop\resume\node_modules\react-pdf-tailwind\dist' Did you mean 'resolveConfig.js'? BREAKING CHANGE: The request 'tailwindcss/resolveConfig' failed to resolve only because it was resolved as fully specified (probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"'). The extension in the request is mandatory for it to be fully specified. Add the extension to the request.

aanckar commented 1 year ago

Sorry for the late reply - I just published a new version of this package, at least ESM seems to be working for me now.

msichterman commented 1 year ago

I am still seeing this issue. Any advice to fix it?

HamzaLinge commented 1 year ago

I don't remember well, it was 9 month ago and i think i just skipped the issue.

Maybe, like @aanckar said, it has been resolved with last update

msichterman commented 1 year ago

I ended up just resolving the path to point to resolveConfig.js in my webpack config