ruby on rails - Browserify can't find module -


i'm trying include react component rails app. react working browserify cant find component.

error: cannot find module 'react-typeahead' '/users/xxx/code/xxx/app/assets/javascripts/react' 

i used bower add react-typeahead vendor/assets/components , i'm trying include with: config.browserify_rails.paths << /vendor\/assets\/\/components\/\/react-typeahead\//

how can browserify load component?


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -