Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error TS2307: Cannot find module './generated/CorePluginList' #8586

Closed
maximeg opened this issue Jun 10, 2022 · 2 comments
Closed

Error TS2307: Cannot find module './generated/CorePluginList' #8586

maximeg opened this issue Jun 10, 2022 · 2 comments

Comments

@maximeg
Copy link
Contributor

maximeg commented Jun 10, 2022

What version of Tailwind CSS are you using?

v3.1.1

What build tool (or framework if it abstracts the build tool) are you using?

Typescript type checking with tsc

What version of Node.js are you using?

For example: v18.3.0

What operating system are you using?

Ubuntu 20.0 LTS

Describe your issue

In our project, we run tsc to typecheck.
Even if not used directly in my codebase, typescript reads the type definitions of tailwindcss.

Since 3.1.1, doing so on our Github Actions CI, we run into a Error: node_modules/tailwindcss/types/config.d.ts(1,37): error TS2307: Cannot find module './generated/CorePluginList' or its corresponding type declarations. error.

Indeed, by doing a ls of the directory, we see that the file is generated ascorePluginList.d.ts.

image

PS: this not an issue on Mac OS.

@gregrafferty
Copy link

I recently stumbled upon this too, it looks to me like there is a casing error in the import of './generated/corePluginList'.

@thecrypticace
Copy link
Contributor

thecrypticace commented Jun 10, 2022

Thanks for reporting this! We all run macOS and it's case insensitive by default because a startling amount of software doesn't work with case sensitive file systems so this slipped by. The fix has been merged and will be available in our next release. In the meantime you can use our insiders build (which should be out in a few minutes) by npm install tailwindcss@insiders

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants