Closed dancancro closed 7 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
/src/typings.d.ts
declare var require: any;
Fixed. My apologies. This was broken by an upstream change.
My app runs locally but I get this error when trying to deploy to Heroku.
I have the following in my
/src/typings.d.ts
file