clbond / ng2-redux-form

Connect Angular 2 forms to Redux stores
17 stars 7 forks source link

Cannot find name 'require' error with Heroku deployment #14

Closed dancancro closed 8 years ago

dancancro commented 8 years ago

My app runs locally but I get this error when trying to deploy to Heroku.

       > ng2-redux-form@1.0.30 build /tmp/build_8aa7672e1abb7cac7f38e75db3516b83/dancancro-great-big-angular2-example-8443109/node_modules/ng2-redux-form
       > tsc

       source/form-store.ts(5,19): error TS2304: Cannot find name 'require'.
       source/module.ts(4,19): error TS2304: Cannot find name 'require'.

       npm ERR! Linux 3.13.0-100-generic
       npm ERR! argv "/tmp/build_8aa7672e1abb7cac7f38e75db3516b83/dancancro-great-big-angular2-example-8443109/.heroku/node/bin/node" "/tmp/build_8aa7672e1abb7cac7f38e75db3516b83/dancancro-great-big-angular2-example-8443109/.heroku/node/bin/npm" "run" "build"
       npm ERR! node v6.5.0
       npm ERR! npm  v3.10.3
       npm ERR! code ELIFECYCLE
       npm ERR! ng2-redux-form@1.0.30 build: `tsc`
       npm ERR! Exit status 2

I have the following in my /src/typings.d.ts file

declare var require: any;
clbond commented 8 years ago

Fixed. My apologies. This was broken by an upstream change.