alexkatz / react-tiny-popover

A simple and highly customizable popover react higher order component with no other dependencies! Typescript friendly.
MIT License
454 stars 121 forks source link

when I paly the demo local, I can launch but no view, with some errors #88

Closed xkx9431 closed 3 years ago

xkx9431 commented 4 years ago

when I runnpm run start-demo

WARNING in ./node_modules/react-tiny-popover/dist/ArrowContainer.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'D:\course\web\react-tiny-popover\docs\node_modules\react-tiny-popover\src\ArrowContainer.tsx' file: Error: ENOENT: no such file or directory, open 'D:\course\web\react-tiny-popover\docs\node_modules\react-tiny-popover\src\ArrowContainer.tsx'
 @ ./node_modules/react-tiny-popover/dist/Popover.js 25:23-50
 @ ./src/demo/Demo.tsx
 @ ./src/App.tsx
 @ ./src/index.tsx
 @ multi ./src/index.tsx

WARNING in ./node_modules/react-tiny-popover/dist/Popover.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'D:\course\web\react-tiny-popover\docs\node_modules\react-tiny-popover\ **src** \Popover.tsx' file: Error: ENOENT: no such file or directory, open 'D:\course\web\react-tiny-popover\docs\node_modules\react-tiny-popover\src\Popover.tsx'
 @ ./src/demo/Demo.tsx 9:0-61 62:99-106 74:46-60
 @ ./src/App.tsx
 @ ./src/index.tsx
 @ multi ./src/index.tsx

I have this error, and I also find in docs, the file is under \docs\node_modules\react-tiny-popover\ dist \Popover.js

so any changes for tsc options I need do? window10

alexkatz commented 3 years ago

Hmm. I am not on Windows 10, and cannot repro. You can always turn off source maps altogether by setting the sourceMap property to false.

I've since made some updates to the docs, so you may want to try once more. I'm going to close this for now since it does not pertain to popover functionality, though I'm happy to further help you out with getting the demo up and running locally.