Skip to content

document is not defined #99

Closed
Closed

Description

@nc

Fresh react-native 0.12 project. Add server and running off master a58a670

Uncaught Error: Uncaught ReferenceError: document is not definedmessageHandlers.executeApplicationScript @ debuggerWorker.js:18onmessage @ debuggerWorker.js:42

Activity

  1. nc commented on Oct 9, 2015

    @nc
    Author

    Traced to var scriptElements = document.getElementsByTagName("script");

  2. auser commented on Oct 10, 2015

    @auser

    Ditto

  3. elliottsj commented on Oct 11, 2015

    @elliottsj
    Collaborator

    I've traced the error to webpack-dev-server/client/index.js#L4, which is included as 'webpack-dev-server/client?http://localhost:8082' in the webpack config.

    I think I know how to get HMR working with the new web worker in RN 0.12 (at least in a hacky way). More info soon 😄

  4. elliottsj commented on Oct 11, 2015

    @elliottsj
    Collaborator

    See #103 for the full explanation & temporary fix

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions