Using a NPM module in my ionic framework app

Hi guys, any news about that ? I’m trying to require a test npm module in my ionic demo project ( as per [Browserify error “require is not defined”] ) but I still have the require not defined errors.

Follow the steps in browserify doc that are the same you did :

  1. .constant(‘Crypto’,require(‘crypto’)) in app.js

  2. bundle.js creation with browserify app.js -o bundle.js

  3. bundle js import in index.html

but still require is not defined.

Please any hints ?

Thanks in advance.