vakhtang/react-search-bar

Broken

sethgrid opened this issue · 2 comments

I'm completely new to npm, node, react, etc. When I try to run this:

$ npm run demo

> react-search-bar@1.1.4 demo /Users/sethammons/workspace/tmp/react/react-search-bar
> webpack-dev-server --config webpack.config.dev.js

 http://localhost:5000/webpack-dev-server/
webpack result is served from /
content is served from ./demo/public
Hash: aae1e9dfc0c25d20237d
Version: webpack 1.14.0
Time: 859ms
    Asset     Size  Chunks             Chunk Names
bundle.js  42.2 kB       0  [emitted]  app
chunk    {0} bundle.js (app) 18.2 kB [rendered]
    [0] multi app 40 bytes {0} [built]
    [1] (webpack)/hot/dev-server.js 1.85 kB {0} [built]
    [2] (webpack)/hot/log-apply-result.js 813 bytes {0} [built]
    [3] ./demo/demo.jsx 1.58 kB {0} [built] [3 errors]
    [4] ./src/SearchBar.jsx 8.45 kB {0} [built] [3 errors]
    [5] ./src/Suggestions.jsx 5.43 kB {0} [built] [2 errors]

ERROR in ./demo/demo.jsx
Module not found: Error: Cannot resolve module 'babel/polyfill' in /Users/sethammons/workspace/tmp/react/react-search-bar/demo
 @ ./demo/demo.jsx 5:0-25

ERROR in ./demo/demo.jsx
Module not found: Error: Cannot resolve module 'react' in /Users/sethammons/workspace/tmp/react/react-search-bar/demo
 @ ./demo/demo.jsx 7:13-29

ERROR in ./demo/demo.jsx
Module not found: Error: Cannot resolve module 'react-dom' in /Users/sethammons/workspace/tmp/react/react-search-bar/demo
 @ ./demo/demo.jsx 11:16-36

ERROR in ./src/SearchBar.jsx
Module not found: Error: Cannot resolve module 'react' in /Users/sethammons/workspace/tmp/react/react-search-bar/src
 @ ./src/SearchBar.jsx 23:13-29

ERROR in ./src/SearchBar.jsx
Module not found: Error: Cannot resolve module 'es6-promise' in /Users/sethammons/workspace/tmp/react/react-search-bar/src
 @ ./src/SearchBar.jsx 17:0-22

ERROR in ./src/SearchBar.jsx
Module not found: Error: Cannot resolve module 'classnames' in /Users/sethammons/workspace/tmp/react/react-search-bar/src
 @ ./src/SearchBar.jsx 19:18-39

ERROR in ./src/Suggestions.jsx
Module not found: Error: Cannot resolve module 'react' in /Users/sethammons/workspace/tmp/react/react-search-bar/src
 @ ./src/Suggestions.jsx 17:13-29

ERROR in ./src/Suggestions.jsx
Module not found: Error: Cannot resolve module 'classnames' in /Users/sethammons/workspace/tmp/react/react-search-bar/src
 @ ./src/Suggestions.jsx 21:18-39

Just made a PR with the changes to fix this. Essentially just run npm install [module] for each of the errors above, and replace import "babel/polyfill" with import "babel-polyfill" in demo/demo.jsx.

2.0 is out, but I don't plan on actively maintaining this project. It's now available for educational purposes. Please use react-autosuggest instead.