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

Prettier is not correctly configured in updated tailwind/expo v2 monorepo #438

Closed
2 of 3 tasks
xerxiastudios opened this issue Oct 18, 2023 · 5 comments
Closed
2 of 3 tasks

Comments

@xerxiastudios
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Do you want this issue prioritized?

  • Yes, I have sponsored
  • Not urgent

Current Behavior

npx create-solito-app@latest my-solito-app -t with-tailwind

For this repo, prettier is not working.

"ERROR" - 05:13:32] Error resolving prettier configuration for /packages/app/features/user/detail-screen.tsx
["ERROR" - 05:13:32] A dynamic import callback was not specified.
TypeError: A dynamic import callback was not specified.
at new NodeError (node:internal/errors:399:5)
at importModuleDynamicallyCallback (node:internal/process/esm_loader:39:9)

Expected Behavior

No response

Steps To Reproduce

No response

Versions

- Solito:4.0.1
- Next.js:13.4.19
- Expo:49.0.0
- React Native:0.72.4

Screenshots

No response

Reproduction

No response

@nandorojo
Copy link
Owner

For others who stumble here, the solution so far is to do yarn remove prettier-plugin-tailwindcss, or to address this here: tailwindlabs/prettier-plugin-tailwindcss#207 (comment)

Open to a PR fixing it.

@ony3000
Copy link
Contributor

ony3000 commented Oct 20, 2023

@xerxiastudios I tried running npx create-solito-app@latest my-solito-app -t with-tailwind on my PC, and it turns out that the versions of prettier and prettier-plugin-tailwindcss are incompatible.

This problem can be resolved in one of two ways:

  1. Leave prettier-plugin-tailwindcss as is and upgrade the version of prettier to ^3.
  2. Leave prettier as is and downgrade the version of prettier-plugin-tailwindcss to <0.5.

@nandorojo
Copy link
Owner

Could you please submit a PR?

@nandorojo
Copy link
Owner

Related: #145

@ony3000
Copy link
Contributor

ony3000 commented Oct 20, 2023

Yes, I will give it a try.

Do you have a preferred version of Prettier?

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