react-google-picker icon indicating copy to clipboard operation
react-google-picker copied to clipboard

How to import

Open jiachen247 opened this issue 6 years ago • 5 comments

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

does not work

jiachen247 avatar Feb 23 '19 14:02 jiachen247

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

joelvh avatar Feb 23 '19 15:02 joelvh

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

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

jiachen247 avatar Feb 24 '19 06:02 jiachen247

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

Santrro avatar Oct 16 '19 06:10 Santrro

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.

chitgoks avatar Nov 04 '19 04:11 chitgoks

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

max-carroll avatar Jun 03 '20 14:06 max-carroll