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: Cannot find module 'node_modules\tailwindcss\lib\util\processPlugins' #48

Open
Pika-Pool opened this issue Feb 5, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@Pika-Pool
Copy link

Describe the bug
Getting the following error on running prettier after installing the plugin.

Error: Cannot find module 'D:\DEV\js-ts\codedamn\1-quiz-app\node_modules\tailwindcss\lib\util\processPlugins'
Require stack:
- D:\DEV\js-ts\codedamn\1-quiz-app\node_modules\tailwind-classes-sorter\lib\index.js
- D:\DEV\js-ts\codedamn\1-quiz-app\node_modules\prettier-plugin-tailwind\lib\index.js
- D:\DEV\js-ts\codedamn\1-quiz-app\node_modules\prettier-plugin-tailwind\prettier-plugin-tailwind.js
- D:\DEV\js-ts\codedamn\1-quiz-app\node_modules\prettier\index.js
- D:\DEV\js-ts\codedamn\1-quiz-app\node_modules\prettier\bin-prettier.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at new TWClassesSorter (D:\DEV\js-ts\codedamn\1-quiz-app\node_modules\tailwind-classes-sorter\lib\index.js:28:31)
    at Object.<anonymous> (D:\DEV\js-ts\codedamn\1-quiz-app\node_modules\prettier-plugin-tailwind\lib\index.js:10:25)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    'D:\\DEV\\js-ts\\codedamn\\1-quiz-app\\node_modules\\tailwind-classes-sorter\\lib\\index.js',
    'D:\\DEV\\js-ts\\codedamn\\1-quiz-app\\node_modules\\prettier-plugin-tailwind\\lib\\index.js',
    'D:\\DEV\\js-ts\\codedamn\\1-quiz-app\\node_modules\\prettier-plugin-tailwind\\prettier-plugin-tailwind.js',
    'D:\\DEV\\js-ts\\codedamn\\1-quiz-app\\node_modules\\prettier\\index.js',
    'D:\\DEV\\js-ts\\codedamn\\1-quiz-app\\node_modules\\prettier\\bin-prettier.js'
  ]

To Reproduce
Steps to reproduce the behavior:

  1. npm i prettier prettier-plugin-tailwind tailwindcss -D
  2. create index.html file in src folder
  3. npx prettier -c src

Expected behavior
No error

Versions:

  • prettier-plugin-tailwind version: 2.2.12
  • prettier version: 2.5.1
  • Operating system: Windows 10
  • NPM/Yarn version: npm v8,1,2
@Pika-Pool Pika-Pool added the bug Something isn't working label Feb 5, 2022
@nezzard
Copy link

nezzard commented Feb 5, 2022

Same error

@cereallarceny
Copy link

Same thing with me. Same versions of prettier and plugin as well.

@seawatts
Copy link

+1

@JosephAnson
Copy link

Install the tailwindlabs offical version instead, this project is no longer supported.

https://github.com/tailwindlabs/prettier-plugin-tailwindcss/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants