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

How to import #16

Open
jiachen247 opened this issue Feb 23, 2019 · 5 comments
Open

How to import #16

jiachen247 opened this issue Feb 23, 2019 · 5 comments

Comments

@jiachen247
Copy link

import {GooglePicker} from 'react-google-picker'

does not work

@joelvh
Copy link

joelvh commented Feb 23, 2019

Did you look at the example? You don’t need the curly braces

@jiachen247
Copy link
Author

the demo imports using the relative path so its dosent help much.

I tried without also and it didnt work. Im using typesript.

@Santrro
Copy link

Santrro commented Oct 16, 2019

import GooglePicker from 'react-google-picker' should work as you have installed it as a package it will automatically resolve the path.

@chitgoks
Copy link

chitgoks commented Nov 4, 2019

Weird. At first says Module not found: Can't resolve 'react' in '...\node_modules\react-google-picker\dist'

I uninstalled it , then installed it again and it works ok.

@max-carroll
Copy link

can you close this issue if this is now fixed please?

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

5 participants