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

UNMET PEER DEPENDENCY #21

Open
westinyang opened this issue Apr 11, 2017 · 3 comments
Open

UNMET PEER DEPENDENCY #21

westinyang opened this issue Apr 11, 2017 · 3 comments

Comments

@westinyang
Copy link

westinyang commented Apr 11, 2017

I use the react native 0.43 version, or do we have this problem, After adding dependent on lead to error of project startup

@tomasdelima
Copy link

tomasdelima commented Apr 13, 2017

Same here. I got the message:

└─┬ [email protected] 
  ├── [email protected] 
  └── [email protected]  (git://github.com/lwansbrough/simple-markdown.git#62efb54d923cae20684a58e87ab159b21edda3b1)

npm WARN [email protected] requires a peer of react-native@^0.4.0 but none was installed.

@tomasdelima
Copy link

tomasdelima commented Apr 13, 2017

Found out that loading modules was not compatible with my react native version.
Change the first lines in ./node_modules/react-native-markdown/Markdown.js and ./node_modules/react-native-markdown/rules.js to:

import React, { Component } from 'react'
import { View, Image, Text } from 'react-native'

@jcollum
Copy link

jcollum commented Apr 21, 2017

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

No branches or pull requests

3 participants