Skip to content

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

@chengyin

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

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