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

expo export hangs when using css import from nativewind #28816

Closed
lachied522 opened this issue May 14, 2024 · 2 comments
Closed

expo export hangs when using css import from nativewind #28816

lachied522 opened this issue May 14, 2024 · 2 comments
Assignees
Labels
needs review Issue is ready to be reviewed by a maintainer

Comments

@lachied522
Copy link

lachied522 commented May 14, 2024

Minimal reproducible example

https://github.com/lachied522/eas-update-test-app

What platform(s) does this occur on?

Android, iOS

Did you reproduce this issue in a development build?

Yes

Summary

I am wanting to publish an update for my expo app, but running eas update gets stuck on "Exporting..." indefinitely. I saw somewhere that I should run npx expo export --output-dir dist --dump-sourcemap --dump-assetmap --platform=all, which results in the metro bundler getting stuck part way through.

Edit: Should also mention that building app is no problem. Only encountered this when attempting to publish update.

eas update gets stuck like this:
√ No branches found. Provide a branch name: ... master
√ Provide an update message: ... initial commit
[expo-cli] Starting Metro Bundler
[expo-cli]
[expo-cli] tailwindcss(native) rebuilding...
[expo-cli] done
| Exporting...

npx expo export --output-dir dist --dump-sourcemap --dump-assetmap --platform=all gets stuck like this:
Starting Metro Bundler
done
iOS node_modules\expo-router/entry.js ▓▓▓▓▓▓▓▓▓▓▓▓░░░░ 80.4% (687/766)
Android node_modules\expo-router/entry.js ░░░░░░░░░░░░░░░░ 0.0% (0/1)

Environment

expo-env-info 1.2.0 environment info:
System:
OS: Windows 10 10.0.19045
Binaries:
Node: 20.12.2 - C:\Program Files\nodejs\node.EXE
npm: 10.5.2 - C:\Program Files\nodejs\npm.CMD
IDEs:
Android Studio: AI-232.10300.40.2321.11668458
npmPackages:
expo: ~51.0.4 => 51.0.5
expo-router: ~3.5.12 => 3.5.12
react: 18.2.0 => 18.2.0
react-dom: 18.2.0 => 18.2.0
react-native: 0.74.1 => 0.74.1
react-native-web: ~0.19.6 => 0.19.11
Expo Workflow: managed

Expo Doctor Diagnostics

✔ Check Expo config for common issues
✔ Check package.json for common issues
✔ Check native tooling versions
✔ Check dependencies for packages that should not be installed directly
✔ Check for common project setup issues
✔ Check npm/ yarn versions
✔ Check for issues with metro config
✔ Check for legacy global CLI installed locally
✔ Check that native modules do not use incompatible support packages
✔ Check Expo config (app.json/ app.config.js) schema
✔ Check that packages match versions required by installed Expo SDK
✔ Check that native modules use compatible support package versions for installed Expo SDK

Didn't find any issues with the project!

@lachied522 lachied522 added the needs validation Issue needs to be validated label May 14, 2024
@expo-bot expo-bot added needs review Issue is ready to be reviewed by a maintainer and removed needs validation Issue needs to be validated labels May 14, 2024
@brentvatne
Copy link
Member

@marklawlor - from the README in the repo that was shared:

Note: Issue seems to be the import "../global.css" (see https://www.nativewind.dev/v4/getting-started/expo-router) line in app/layout.tsx. Removing this line resolves the issues.

@brentvatne brentvatne changed the title EAS Update Getting Stuck Exporting expo export hangs when using css import from nativewind May 14, 2024
@lachied522
Copy link
Author

Changing '../global.css' to '../node_modules/.cache/nativewind/global.css' resolved issue

github.com/markgithub.com/marklawlor/nativewind/issues/610lawlor/nativewind/issues/610

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs review Issue is ready to be reviewed by a maintainer
Projects
None yet
Development

No branches or pull requests

4 participants