roninoss / create-expo-stack

CLI tool to initialize a React Native application with Expo. Provides options to include Typescript, file-based routing via Expo Router, configuration based routing via pure React Navigation, styling via Nativewind, Restyle, Unistyles, StyleSheets, or Tamagui, and/or backend as a service such as Firebase and Supabase.
https://rn.new
MIT License
1.58k stars 85 forks source link

Missing nativewindui folder when using bun #394

Closed danstepanov closed 3 months ago

danstepanov commented 3 months ago

Issue tracker is ONLY used for reporting bugs. New features should be discussed on our discord, in the #create-expo-stack channel.

Expected Behavior

Project should include /components/nativewindui directory when components are installed

Current Behavior

Screenshot 2024-08-19 at 7 04 26 PM

Screenshot 2024-08-19 at 7 04 35 PM

Possible Solution

Something pertaining to the NWUI CLI?

Steps to Reproduce

bun --version: 1.0.22

  1. npx create-expo-stack@latest --nativewindui --bun

CES Config File

{
  "cesVersion": "2.11.17",
  "projectName": "my-expo-app",
  "packages": [
    {
      "name": "nativewindui",
      "type": "styling",
      "options": {
        "selectedComponents": [
          "action-sheet",
          "activity-indicator",
          "activity-view",
          "avatar",
          "bottom-sheet",
          "date-picker",
          "picker",
          "progress-indicator",
          "ratings-indicator",
          "slider",
          "text",
          "toggle"
        ]
      }
    },
    {
      "name": "expo-router",
      "type": "navigation",
      "options": {
        "type": "stack"
      }
    }
  ],
  "flags": {
    "noGit": false,
    "noInstall": false,
    "overwrite": false,
    "importAlias": true,
    "packageManager": "bun",
    "eas": false
  },
  "packageManager": {
    "type": "bun",
    "version": "1.0.22"
  },
  "os": {
    "type": "Darwin",
    "platform": "darwin",
    "arch": "arm64",
    "kernelVersion": "23.6.0"
  }
}
sammoore commented 3 months ago

@danstepanov this is an issue with that version of Bun. I've verified:

Given that Bun's stability wasn't great on 1.0, they are shipping fast and breaking things, and have no defined support policy, I personally don't think we should workaround new issues in Bun 1.0

dannyhw commented 3 months ago

Yeah we already changed our recommendation to use the latest bun version. I can make a change to the warning to show for older versions like this aswell as the ones effected by the ajv stuff.

danstepanov commented 3 months ago

worked with latest