Open aplr opened 2 years ago
@aplr Downgrade tailwind-styled-components to 2.1.6
yarn upgrade tailwind-styled-components@2.1.6
@MathiasGilson i'm getting the same issue in my vitest unit tests jsdom env.
I downgraded to 2.1.6 and I still had the same issue:
error - TypeError: tailwind_styled_components__WEBPACK_IMPORTED_MODULE_13__.div is not a function
at eval (webpack-internal:///./src/pages/ResourcePage.js:36:76)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
When using
"type": "module"
in mypackage.json
, the styled component import fails with the following error:What needs to be done to fix this?