镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

When using Parse SDK, packager reports cannot find package main file for xmlhttprequest #84

Description

@chengyin

Per Twitter conversation with @vjeux to file this issue.

The Network.md doc indicates the possibility to use Parse JS SDK with react-native. I tried it and it was unsuccessful due to the dependency on the non-react-native implementation of xmlhttprequest.

Steps to reproduce:

  1. Install Parse through npm install parse [1]
  2. Require Parse in the JS app

Actual Result:

In the console I got

[21:47:57] <START> find dependencies
Error: Cannot find package main file for pacakge: /[...]/node_modules/parse/node_modules/xmlhttprequest
    at DependecyGraph.resolveDependency (/[...]/packager/react-packager/src/DependencyResolver/haste/DependencyGraph/index.js:130:13)
    at /[...]/packager/react-packager/src/DependencyResolver/haste/DependencyGraph/index.js:66:22
    at Array.forEach (native)
    at collect (/[...]/packager/react-packager/src/DependencyResolver/haste/DependencyGraph/index.js:64:25)
    at /[...]/packager/react-packager/src/DependencyResolver/haste/DependencyGraph/index.js:79:9
    at Array.forEach (native)
    at collect (/[...]/packager/react-packager/src/DependencyResolver/haste/DependencyGraph/index.js:64:25)
    at DependecyGraph.getOrderedDependencies (/[...]/packager/react-packager/src/DependencyResolver/haste/DependencyGraph/index.js:85:3)
    at /[...]/packager/react-packager/src/DependencyResolver/haste/index.js:54:35
    at _fulfilled (/[...]/node_modules/q/q.js:787:54)

The typo on pacakge is fixed on pull request #83.

[1] The npm version of Parse SDK AFAIK is not the same as their web version

Activity

  1. amasad commented on Feb 20, 2015

    @amasad
    Contributor

    we do some stubbing of xmlhttprequest, I'll look at the way we use it tomorrow and report back on steps on how to do it.

  2. amasad commented on Mar 23, 2015

    @amasad
    Contributor

    this should be fixed in the next update

  3. amasad commented on Mar 23, 2015

    @amasad
    Contributor

    fixed via 244de92 let me know if otherwise

  4. locked as resolved and limited conversation to collaborators on May 29, 2018
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions