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

AJV issue with NativeWindUI + Bun #269

Open
danstepanov opened this issue Apr 22, 2024 · 2 comments
Open

AJV issue with NativeWindUI + Bun #269

danstepanov opened this issue Apr 22, 2024 · 2 comments
Assignees

Comments

@danstepanov
Copy link
Owner

danstepanov commented Apr 22, 2024

In an effort to run the build on my physical device, I am trying to create a development build via EAS (not locally) and am running into the following:

Build failed

Cannot find module 'ajv/dist/compile/codegen'
Require stack:
- /Users/expo/workingdir/build/node_modules/ajv-keywords/dist/definitions/typeof.js
- /Users/expo/workingdir/build/node_modules/ajv-keywords/dist/keywords/typeof.js
- /Users/expo/workingdir/build/node_modules/ajv-keywords/dist/keywords/index.js
- /Users/expo/workingdir/build/node_modules/ajv-keywords/dist/index.js
- /Users/expo/workingdir/build/node_modules/schema-utils/dist/validate.js
- /Users/expo/workingdir/build/node_modules/schema-utils/dist/index.js
- /Users/expo/workingdir/build/node_modules/expo-router/plugin/build/index.js
- /Users/expo/workingdir/build/node_modules/expo-router/app.plugin.js
- /usr/local/eas-build-worker/node_modules/@expo/build-tools/node_modules/@expo/config-plugins/build/utils/plugin-resolver.js
- /usr/local/eas-build-worker/node_modules/@expo/build-tools/node_modules/@expo/config-plugins/build/plugins/withStaticPlugin.js
- /usr/local/eas-build-worker/node_modules/@expo/build-tools/node_modules/@expo/config-plugins/build/plugins/withPlugins.js
- /usr/local/eas-build-worker/node_modules/@expo/build-tools/node_modules/@expo/config-plugins/build/index.js
- /usr/local/eas-build-worker/node_modules/@expo/build-tools/dist/android/expoUpdates.js
- /usr/local/eas-build-worker/node_modules/@expo/build-tools/dist/utils/expoUpdates.js
- /usr/local/eas-build-worker/node_modules/@expo/build-tools/dist/builders/android.js
- /usr/local/eas-build-worker/node_modules/@expo/build-tools/dist/builders/index.js
- /usr/local/eas-build-worker/node_modules/@expo/build-tools/dist/index.js
- /usr/local/eas-build-worker/src/services/worker/dist/service.js
- /usr/local/eas-build-worker/src/services/worker/dist/ws.js
- /usr/local/eas-build-worker/src/services/worker/dist/main.js

My configuration

Your project configuration:
{
  projectName: 'my-expo-app',
  packages: [
    {
      name: 'nativewindui',
      type: 'styling',
      options: { selectedComponents: [ 'activity-indicator' ] }
    },
    {
      name: 'expo-router',
      type: 'navigation',
      options: { type: 'drawer + tabs' }
    }
  ],
  flags: {
    noGit: false,
    noInstall: false,
    overwrite: false,
    importAlias: true,
    packageManager: 'bun'
  }
}```

## Build details
<img width="722" alt="Screenshot 2024-04-21 at 9 21 06 PM" src="https://github.com/danstepanov/create-expo-stack/assets/5482800/d044fa47-de1b-4c03-a4b8-b799d9d6aae9">
<img width="756" alt="Screenshot 2024-04-21 at 9 21 31 PM" src="https://github.com/danstepanov/create-expo-stack/assets/5482800/7d135aba-5d84-429b-8c5c-38f1334584b2">
@danstepanov
Copy link
Owner Author

Seems like this line isn't being included in the package.json for this project

@danstepanov
Copy link
Owner Author

This issue is relevant oven-sh/bun#9135

We can likely bypass this by locking a version of bun (maybe 1.014?) which I only know how to do locally, not sure how to lock that in EAS. For now, I recommend anyone using CES to use npm or yarn.

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

2 participants