react-native-react-bridge icon indicating copy to clipboard operation
react-native-react-bridge copied to clipboard

Non EcmaScript module

Open LouisSyfer opened this issue 3 years ago • 0 comments

Hi @inokawa !

Your package looks great, congratulations ! Once I found it, I wanted to try it. And I did it ! But... it's not working.

The error :

./node_modules/react-native-react-bridge/lib/web/index.mjs 40:32-38
Can't import the named export 'render' from non EcmaScript module (only default export is available) ./node_modules/react-native-react-bridge/lib/index.mjs 6:18-29 Can't import the named export 'useCallback' from non EcmaScript module (only default export is available) ./node_modules/react-native-react-bridge/lib/index.mjs 15:13-24 Can't import the named export 'useCallback' from non EcmaScript module (only default export is available) ./node_modules/react-native-react-bridge/lib/web/index.mjs 41:37-46
Can't import the named export 'useEffect' from non EcmaScript module (only default export is available) ./node_modules/react-native-react-bridge/lib/index.mjs 5:12-18 Can't import the named export 'useRef' from non EcmaScript module (only default export is available) ./node_modules/react-native-react-bridge/lib/web/index.mjs 40:32-38 Can't import the named export 'render' from non EcmaScript module (only default export is available) ./node_modules/react-native-react-bridge/lib/index.mjs 6:18-29 Can't import the named export 'useCallback' from non EcmaScript module (only default export is available) ./node_modules/react-native-react-bridge/lib/index.mjs 15:13-24 Can't import the named export 'useCallback' from non EcmaScript module (only default export is available) ./node_modules/react-native-react-bridge/lib/web/index.mjs 41:37-46
Can't import the named export 'useEffect' from non EcmaScript module (only default export is available) ./node_modules/react-native-react-bridge/lib/index.mjs 5:12-18 Can't import the named export 'useRef' from non EcmaScript module (only default export is available)

The question is : what I have missed ?!

Thanks a lot for replying !

LouisSyfer avatar Jan 07 '22 17:01 LouisSyfer