-
Notifications
You must be signed in to change notification settings - Fork 88
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
[BUG] Cannot find module 'prettier-plugin-tailwindcss' #111
Comments
@creyD What would be the ETA on having this bug resolved. My dev team's project uses your action as part of our build checks |
@karkir0003 Can you please try with version 4.3? |
It seems like using version 4.3 works @creyD. I'll keep you posted if another error comes up |
Good, @andershagbard Please confirm that it works with 4.3 for you too. |
Same error |
Feels like the problem is this: Lines 62 to 65 in 31355f8
|
@timsu92 I don't think that's the issue. I'm seeing the same issue with v4.3: name: Prettier
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
prettier:
name: Prettier
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Prettify code
uses: creyD/[email protected]
with:
dry: true
prettier_options: --check *.{mj,t}s examples/**/* packages/*/src/** packages/*/dev/** packages/react-querybuilder/genericTests/** website/*.js website/{docs,src,versioned_docs,versioned_sidebars}/**
prettier_plugins: 'prettier-plugin-organize-imports'
- name: Git diff
if: ${{ failure() }}
run: git diff && exit 1 |
@jakeboone02 Any ideas on how to fix this? |
@creyD I'm not sure if this will help, but I had a similar issue when trying to use Prettier's JavaScript API from Bun. The solution to that particular problem was to specify the location of the |
I was having this same issue with Here's my (now) working workflow file for reference ...
jobs:
build-and-test:
name: 'Build, Format and Test'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: NPM Install
run: npm i
- name: Run Prettier
if: ${{ github.ref != 'refs/heads/main' }}
uses: creyD/prettier_action@master
with:
prettier_options: --write {**/*,*}.{js,jsx,mjs,cjs,ts,tsx,css,scss,sass}
file_pattern: "src"
prettier_plugins: "prettier-plugin-tailwindcss"
... my /** @type {import("prettier").Options} */
module.exports = {
trailingComma: 'es5',
tabWidth: 2,
semi: true,
singleQuote: true,
jsxSingleQuote: true,
plugins: ['prettier-plugin-tailwindcss'],
}; and my "devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"eslint": "^8.47.0",
"eslint-plugin-jest-dom": "^5.0.2",
"eslint-plugin-react": "^7.33.2",
"prettier": "^3.0.2",
"prettier-plugin-tailwindcss": "^0.5.3",
"tailwindcss": "^3.3.3"
}, |
I can confirm
|
The following workflow gives this error:
Workflow
.prettierrc.json
Not sure how to proceed.
The text was updated successfully, but these errors were encountered: