nandorojo / solito

🧍‍♂️ React Native + Next.js, unified.
https://solito.dev
MIT License
3.53k stars 180 forks source link

Error: Cannot find module 'autoprefixer' w/ with-tailwind starter #489

Closed ktkennychow closed 2 months ago

ktkennychow commented 3 months ago

Is there an existing issue for this?

Do you want this issue prioritized?

Current Behavior

Next.js will crash with Error: Cannot find module 'autoprefixer'

Expected Behavior

No response

Steps To Reproduce

  1. Create w/ npx create-solito-app@latest my-solito-app -t with-tailwind
  2. yarn web/bun web
  3. Next.js crashes w/ Error: Cannot find module 'autoprefixer'

TEMP FIX: I got it running by simply installing "autoprefixer" as a dev dependency in /apps/next. Not even sure if it is the right place or if it should be in root.

Versions

- Solito: 0.2.0
- Next.js: 14.2.6
- Expo:/
- React Native:/

No response

madmonkey08 commented 2 months ago

The project will be abandoned? The error still happening @nandorojo

nandorojo commented 2 months ago

https://github.com/nandorojo/solito/pull/480#issuecomment-2315953840

Related to reverting this PR

nandorojo commented 2 months ago

@madmonkey08 you clicked “not urgent” in your issue, so there is no need to tag and follow up.

ktkennychow commented 2 months ago

@nandorojo thought I had choose either or, since I did not sponsor. The versions of Expo dependency libraries seem to be out of sync too, it is easily fixable following Expo console warnings. But yea, not working out of the box w/ known package manager/installer script problem introduced by #480. Would love to help, let me know if the original writer is not available to debug.

Arturo-Lopez commented 2 months ago

facing the same issue, are there some steps that I could follow in order to solve it?

ktkennychow commented 2 months ago

@Arturo-Lopez In root/package.json add "autoprefixer": "^10.4.14" and install that dependency by yarn install again

nandorojo commented 2 months ago

@ktkennychow would you be open to sending a PR to add that to the example template? Would love to merge that and fix this for others! Thanks for sharing the fix

ktkennychow commented 2 months ago

@nandorojo Sure, I will fix the version of dependencies for Expo as well while I am at it.

ktkennychow commented 2 months ago

@nandorojo #491 PR created :)