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

[ NativeWind Bug ] The web platform does not work on windows #131

Open
gokul1099 opened this issue Apr 18, 2024 · 10 comments
Open

[ NativeWind Bug ] The web platform does not work on windows #131

gokul1099 opened this issue Apr 18, 2024 · 10 comments

Comments

@gokul1099
Copy link

gokul1099 commented Apr 18, 2024

I have existing react native project, How can i use react-native-reusable? How can i do the initial configuration to use the cli later to add needed components. I have gone through the docs, looks like some sub sections in installation sections are missing.

@gokul1099 gokul1099 added the enhancement New feature or request label Apr 18, 2024
@mrzachnugent
Copy link
Owner

Hi @gokul1099,

On the Initial Setup page, you can select the 'Manual Installation" tab.

Then, you can use the CLI to add components to your project. You can use npx @react-native-reusables/cli@latest add, then it will prompt you with the type of project you are working with (universal or native-only), with the location of your /components and /lib folders, then you can select the components you want to add to your project. It will, then, add the files and dependencies (if any).

Is is possible that there are sections that are missing information. Could you please provide the exact cases please? That way I could fix it

@itsyashsahu
Copy link

Hi @mrzachnugent
I am trying to use the official repo starter base to make the universal react app.
I am following the steps mentioned in the docs but still the metro bulid gets stuck without throwing an error.

Can you please help me with this ?

@rickychan0611
Copy link

Hi @mrzachnugent I am trying to use the official repo starter base to make the universal react app. I am following the steps mentioned in the docs but still the metro bulid gets stuck without throwing an error.

Can you please help me with this ?

I have the same problem.

@mrzachnugent
Copy link
Owner

Hey @itsyashsahu @rickychan0611,

I am going to try it on my side and document the steps I am taking here.

  1. git clone https://github.com/mrzachnugent/react-native-reusables.git
  2. cp -R react-native-reusables/apps/starter-base/ ./my-project
  3. cd my-project && npm install
  4. npm run ios
  5. I ran into this error which seems to be an npm issue: "Error: EMFILE: too many open files, watch" so I deleted the node_modules and ran npm install once again
  6. Then it worked.

Let me know if you this fixes your issue.

Screenshot 2024-04-19 at 4 46 04 PM

@itsyashsahu
Copy link

itsyashsahu commented Apr 20, 2024

@mrzachnugent I am doing the same steps just running it for the web.

  1. git clone https://github.com/mrzachnugent/react-native-reusables.git
  2. cp -R react-native-reusables/apps/starter-base/ ./my-project
  3. cd my-project && npm install
  4. npm run web

then it gets stucked at a point. I tried it multiple times

if i run the same on the android it works fine

@Alejandro-M-Cruz
Copy link

Alejandro-M-Cruz commented Apr 20, 2024

Hi, I'm having the same issue as @itsyashsahu. The starter project seems to work fine on Android, but when running on web it gets stuck while bundling. No error message or anything, the terminal just freezes. I have tried with both npm and yarn. At least in my case, the issue is only on Windows 10. I have tried on macOS and everything works fine.

System details:

  • Windows 10
  • NodeJS v20.10.0
  • npm 10.5.0
  • yarn 1.22.22
  • expo 50.0.17

It gets stuck here:

image

@rickychan0611
Copy link

It is indeed a problem within nativewind v4. I discovered a pull request in Nativewind's repository and tested it out. I can confirm that it no longer gets stuck on Windows with the correction. However, the pull request has not been merged yet.
marklawlor/nativewind@59847eb

@a0m0rajab
Copy link

Related PR link: marklawlor/nativewind#860

@mrzachnugent mrzachnugent changed the title Setting up in existing project [ Nativewind Bug ] The web platform does not work on windows [#860](https://github.com/marklawlor/nativewind/pull/860) Apr 28, 2024
@mrzachnugent mrzachnugent changed the title [ Nativewind Bug ] The web platform does not work on windows [#860](https://github.com/marklawlor/nativewind/pull/860) [ NativeWind Bug ] The web platform does not work on windows Apr 28, 2024
@mrzachnugent mrzachnugent added bug Something isn't working and removed enhancement New feature or request labels Apr 28, 2024
@mrzachnugent mrzachnugent added nativewind bug and removed bug Something isn't working labels May 17, 2024
@ndarcode
Copy link

any updates?

@mrzachnugent
Copy link
Owner

any updates?

For updates, you can check the pull request on NativeWind's Github repo: marklawlor/nativewind#860

When it is solved, I will close this issue.

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

No branches or pull requests

7 participants