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

No version of 'react-native-dom' found that satisfies a peer dependency on '[email protected]' #62

Open
DevKiri opened this issue Jul 19, 2018 · 4 comments

Comments

@DevKiri
Copy link

DevKiri commented Jul 19, 2018

When use "$: react-native dom"
Appears:
No version of 'react-native-dom' found that satisfies a peer dependency on '[email protected]'

This is my package.json:

{
"name": "dom",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"react": "16.4.1",
"react-dom": "^16.4.1",
"react-native": "0.56.0",
"react-native-dom": "0.2.0"
},
"devDependencies": {
"babel-jest": "23.4.0",
"babel-preset-react-native": "^5",
"jest": "23.4.1",
"react-test-renderer": "16.4.1",
"rnpm-plugin-dom": "^0.1.1"
},
"jest": {
"preset": "react-native"
}
}

@vincentriemer
Copy link
Owner

Ah, that's because RND doesn't currently support RN 0.56 (I'm working really hard on it), so in the meantime you're going to have to downgrade to 0.55.

This could also be an opportunity for anyone who's interested in contributing to improve that error message!

@sallespro
Copy link

i couldn't get started with

    "react": "16.3.1",
    "react-native": "0.55.4",
    "react-native-dom": "0.2.0",
    "rnpm-plugin-dom": "^0.1.1"
error: bundling failed: Error: Cannot find module 'AccessibilityInfo' (While processing preset: "/Users/rrocsal/dev/code/research/dom/node_modules/react-native/Libraries/react-native/react-native-implementation.js")
    at Function.Module._resolveFilename (module.js:547:15)
    at Function.Module._load (module.js:474:25)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)

@darrencruse
Copy link

JIC it helps somebody I was attempting to do a little hello world following the Getting Started steps in the README but downgrading react to 0.55 as stated above...

But me I was getting a different error from the bundler (Plugin 0 provided an invalid property of "default").

Googling I found that error mentioned here:
storybookjs/storybook#3897

Following the final tip given there did get it working for me i.e. my package.json looks like:

{
  "name": "RNDTest1",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest"
  },
  "dependencies": {
    "react": "16.4.1",
    "react-native": "0.55.0",
    "react-native-dom": "0.2.0"
  },
  "devDependencies": {
    "babel-jest": "23.4.0",
    "babel-preset-react-native": "2.1.0",
    "jest": "23.4.1",
    "react-test-renderer": "16.4.1",
    "rnpm-plugin-dom": "^0.1.1"
  },
  "jest": {
    "preset": "react-native"
  }
}

@luandro
Copy link

luandro commented Aug 27, 2018

Should be added to the README that react-native v0.56 isn't supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants