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-Speech @ 51 fails on web with error: _ExponentSpeech.default.listenerCount is not a function #28694

Closed
alyxb opened this issue May 8, 2024 · 2 comments
Assignees

Comments

@alyxb
Copy link

alyxb commented May 8, 2024

Minimal reproducible example

https://github.com/alyxb/expo-speech-bug

What platform(s) does this occur on?

Web

Did you reproduce this issue in a development build?

No (tested in Expo Go)

Summary

Get a Speech.speak() error in Expo 51 when running a simple speak command on Web (Chrome Version 124.0.6367.119 (Official Build) (arm64)):

   import * as Speech from "expo-speech";

   //...//

   const thingToSay = "1";
   Speech.speak(thingToSay);

This error is present in [email protected], but not in [email protected].

12.0.1 is the default in Expo 51.

Environment

expo-env-info 1.2.0 environment info:
System:
OS: macOS 13.6
Shell: 5.9 - /bin/zsh
Binaries:
Node: 21.5.0 - /opt/homebrew/bin/node
Yarn: 1.22.21 - /opt/homebrew/bin/yarn
npm: 10.2.4 - /opt/homebrew/bin/npm
Managers:
CocoaPods: 1.14.3 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4
IDEs:
Xcode: 14.3.1/14E300c - /usr/bin/xcodebuild
npmPackages:
expo: ~51.0.0 => 51.0.0
expo-router: ~3.5.10 => 3.5.10
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.10 => 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 for issues with metro config
✔ Check npm/ yarn versions
✔ Check Expo config (app.json/ app.config.js) schema
✔ Check that native modules do not use incompatible support packages
✔ Check for legacy global CLI installed locally
✔ Check that native modules use compatible support package versions for installed Expo SDK
✔ Check that packages match versions required by installed Expo SDK

@alyxb alyxb added the needs validation Issue needs to be validated label May 8, 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 8, 2024
@expo-bot
Copy link
Collaborator

expo-bot commented May 9, 2024

Thank you for filing this issue!
This comment acknowledges we believe this may be a bug and there’s enough information to investigate it.
However, we can’t promise any sort of timeline for resolution. We prioritize issues based on severity, breadth of impact, and alignment with our roadmap. If you’d like to help move it more quickly, you can continue to investigate it more deeply and/or you can open a pull request that fixes the cause.

@github-actions github-actions bot removed the needs review Issue is ready to be reviewed by a maintainer label May 9, 2024
@brentvatne
Copy link
Member

this is fixed in the latest version of expo-speech, get it with npx expo install --fix

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

4 participants