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

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

Closed
chengyin opened this issue Feb 20, 2015 · 3 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@chengyin
Copy link
Contributor

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

@amasad
Copy link
Contributor

amasad commented Feb 20, 2015

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.

@amasad
Copy link
Contributor

amasad commented Mar 23, 2015

this should be fixed in the next update

@amasad
Copy link
Contributor

amasad commented Mar 23, 2015

fixed via 244de92 let me know if otherwise

@amasad amasad closed this as completed Mar 23, 2015
harrykiselev pushed a commit to harrykiselev/react-native that referenced this issue Aug 5, 2015
Clarify the scope of the _todos variable
@facebook facebook locked as resolved and limited conversation to collaborators May 29, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants