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

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

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -