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

ReferenceError: WebSocket is not defined #1277

Closed
til2000 opened this issue Mar 10, 2023 · 1 comment
Closed

ReferenceError: WebSocket is not defined #1277

til2000 opened this issue Mar 10, 2023 · 1 comment
Milestone

Comments

@til2000
Copy link

til2000 commented Mar 10, 2023

Steps / App / System description:

  • reactotron-app_3.0.0-alpha.20_amd64.deb

  • Redux App, running on non-standard port (3300), not using WS

    package.json:
        ...
        "redux": "^4.2.0",
        "reactotron-react-js": "^3.3.8",
        "reactotron-redux": "^3.1.3",
        ...
    
  • ReactotronConfig

    import Reactotron from 'reactotron-react-js'
    import { reactotronRedux } from 'reactotron-redux'
    
    const reactotron = Reactotron
      .configure() // we can use plugins here -- more on this later
      .use(reactotronRedux())
      .connect() // let's connect!
    
    export default reactotron
    

I'm not using WebSocket in my app, if that's of any concern.
it works when just saving the changes while the app is running in dev mode ( next ), but as soon as the app gets refreshed the error occurs:

Error

Server Error

ReferenceError: WebSocket is not defined
This error happened while generating the page. Any console logs will be displayed in the terminal window.
Source

ReactotronConfig.js (9:3) @ eval

   7 | .configure() // we can use plugins here -- more on this later
   8 | .use(reactotronRedux())
>  9 | .connect() // let's connect!
     | ^
  10 | 
  11 | export default reactotron
@joshuayoes joshuayoes added this to the 3.0.0 milestone Jun 20, 2023
@joshuayoes
Copy link
Contributor

This should be resolved now in the beta:
https://github.com/infinitered/reactotron/releases/tag/reactotron-app%403.0.0-beta.18

I have been testing the latest Reactotron with Ignite and I'm not having that issue anymore: https://github.com/infinitered/ignite

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