atticoos / gulp-ng-config

:wrench: Create AngularJS constants from a JSON config file
MIT License
173 stars 35 forks source link

Can't find variable: require #54

Closed sanchobouillant closed 8 years ago

sanchobouillant commented 8 years ago

Hello,

I installed gulp-ng-config with the command "npm install gulp-ng-config; bower install".

When i run "gulp test", i got:


ReferenceError: Can't find variable: require
  at bower_components/gulp-ng-config/gulp-ng-config.js:3

Any ideas ?

atticoos commented 8 years ago

It looks like this is somehow being loaded as a bower component? Try loading this as a node module (npm, etc)?

sanchobouillant commented 8 years ago

I installed gulp-ngconfig with npm.

npm install gulp-ng-config --save
bower install

I have the same issue with npm test

sanchobouillant commented 8 years ago

I remove gulp-ng-config and i reinstall it with npm install gulp-ng-angular.

Everything is working fine ...