Skip to content

Unhandled Runtime Error : (0 , _react.useState) is not a function #175

Closed

Description

@Naitik4516

I am getting an unhandled runtime error in Nextjs 13.4 .

  8 |   resetTranscript,
   9 |   browserSupportsSpeechRecognition
> 10 | } = useSpeechRecognition();
     |                        ^
  11 | 
  12 | if (!browserSupportsSpeechRecognition) {
  13 |   return <span>Browser doesn't support speech recognition.</span>;

Activity

  1. sonicvision commented on Jun 2, 2023

    @sonicvision

    Yup.. same here. I get the same error in nextJs

  2. Tucker-Judge commented on Jun 7, 2023

    @Tucker-Judge

    Next doesn't like the library or accessing the window object for ssr. I rendered my component dynamically with ssr off and it worked fine. Hope that helps.

  3. Repository owner locked and limited conversation to collaborators on Mar 31, 2025
  4. converted this issue into a discussion #236 on Mar 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions