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

weird problem: naming collision #3

Closed
shuiRong opened this issue Dec 29, 2018 · 3 comments
Closed

weird problem: naming collision #3

shuiRong opened this issue Dec 29, 2018 · 3 comments
Labels

Comments

@shuiRong
Copy link

Version(if relevant): 1.0.0

"relative-time-react-native-component": "^4.5.1"

Environment(if relevant):

react: "16.6.3",
react-native: "0.57.1",
yarn: 1.12.3
npm: 6.4.1
node: v10.0.0
macOS: 10.14.2

Code(if relevant):

import { RelativeTime } from 'relative-time-react-component'

...

<RelativeTime time={1545835171000} />

Expected:

Actual:

look the screenshots:
image
image

If I delete the node_modules/relative-time-react-component/node_modules manually, the problem will be gone. It's weird.

@plantain-00
Copy link
Owner

It seems you installed 2 react-native package, you can check it by yarn list --pattern react-native.

You can google the solution, usually just merge them in yarn.lock, then yarn again

@shuiRong
Copy link
Author

I delete the "react-native": "*" in yarn.lock and reinstall node_modules, the problem is gone.

@shuiRong
Copy link
Author

I delete the "react-native": "*" in yarn.lock and reinstall node_modules, the problem is gone.

The reasonable way: amazon-archives/awsmobile-cli#172 (comment)

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

No branches or pull requests

2 participants