You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run git clone https://github.com/zanminkian/react-boilerplate.git
Checkout tailwind-issue branch using git checkout tailwind-issue
Run pnpm install
Run pnpm build will fail. Type 'typeof import("/root/projects/react-boilerplate/node_modules/.pnpm/tailwindcss@3.3.3_ts-node@10.9.1/node_modules/tailwindcss/types/index")' is not assignable to type 'AcceptedPlugin'.
The text was updated successfully, but these errors were encountered:
This seems to be a problem with the module resolution in tsconfig but I don't know why. If you override it to use Node rather than Node16 it works but, as far as I know, this shouldn't matter.
Basically what's happening is it thinks that import tailwindcss from "tailwindcss" produces an object of the form { default: PluginCreator<…> } rather than PluginCreator<…>.
I'll see if I can track down what's happening here (or at least a why).
What version of Tailwind CSS are you using?
v3.3.3
What build tool (or framework if it abstracts the build tool) are you using?
vite 4.4.9
What version of Node.js are you using?
v16.20.2
What browser are you using?
chrome
What operating system are you using?
linux
Reproduction URL
https://github.com/zanminkian/react-boilerplate/tree/tailwind-issue
Describe your issue
git clone https://github.com/zanminkian/react-boilerplate.git
git checkout tailwind-issue
pnpm install
pnpm build
will fail.Type 'typeof import("/root/projects/react-boilerplate/node_modules/.pnpm/tailwindcss@3.3.3_ts-node@10.9.1/node_modules/tailwindcss/types/index")' is not assignable to type 'AcceptedPlugin'.
The text was updated successfully, but these errors were encountered: