--no-pwa switch for npx expo export:web?

We recently updated to SDK 46. Our build pipeline always does npm install -g expo-cli as part of the build.

Where we were previously using expo build:web --no-pwa we started seeing an error message advising that we should switch to npx expo export:web instead.

We first tried changing the build script to npm install -g expo-cli@5, but that didn’t solve the problem.

Having updated to use the npx command as suggested, we see that --no-pwa isn’t supported: Unknown or unexpected option: --no-pwa

What’s the equivalent no-pwa configuration for export:web?

Hey @ownableuk, that’s a warning message you’ll get if using the global expo-cli instead of local cli which is versioned with Expo SDK 46 projects.

The new local CLI does not support this command since web support is not automatically added to any new project created using Expo SDK 46.

In this case, you can continue to use the legacy cli. Use expo-cli instead of expo to run a command. For example, In your case, the command is expo-cli build:web --no-pwa.

Let me know how it goes.

@amanhimself many thanks - build is up and running again after switching to expo-cli!

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.