jasonkuhrt / react-popover

A smart popover component for React
600 stars 253 forks source link

Module not found #119

Closed strawstack closed 7 years ago

strawstack commented 7 years ago

Installing the module with: "npm install --save react-popover" Importing with this: "import Popover from 'react-popover'" Results in the error below when "npm start" is run

Error: Module not found: 'react-popover'

The react-popover module is present in the "node_modules" folder

strawstack commented 7 years ago

Solved. I had to use the following line to import. However, this is unintuitive and should be changed or documented

import Popover from 'react-popover/lib/platform'

but this actually doesn't work. I think the underlying issue is https://github.com/littlebits/react-popover/issues/118

jasonkuhrt commented 7 years ago

@strawstack Yup its #118. Sorry about this! Should be fixed now.