unfetter-discover/unfetter

Unable to build threat-ingest

Closed this issue · 0 comments

When running ansible-playbook deploy-dev.yml, I get an error when trying to build threat-ingest.

The error is below in detail. It seems that the error is from the added line
RUN npm clean && npm run build

This was committed on Nov 6th
unfetter-discover/unfetter-store@fb78f9d#diff-63c526928c3e40e0004c83789e51b10e

Step 20/21 : RUN npm run clean && npm run build
 ---> Running in 52913eb7c211

> unfetter-threat-ingest@0.3.11 clean /usr/share/unfetter-threat-ingest
> rimraf dist/ tsdocs/ coverage/ .nyc_output/


> unfetter-threat-ingest@0.3.11 build /usr/share/unfetter-threat-ingest
> npm run build-ts


> unfetter-threat-ingest@0.3.11 build-ts /usr/share/unfetter-threat-ingest
> tsc

src/processor/threat-feed-processor.ts(3,8): error TS1192: Module '"/usr/share/unfetter-threat-ingest/node_modules/@types/node-fetch/index"' has no default export.
src/processor/threat-feed-processor.ts(208,24): error TS7006: Parameter 'response' implicitly has an 'any' type.
src/processor/threat-feed-processor.ts(216,25): error TS7006: Parameter 'err' implicitly has an 'any' type.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! unfetter-threat-ingest@0.3.11 build-ts: `tsc`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the unfetter-threat-ingest@0.3.11 build-ts script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2018-11-16T21_12_55_725Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! unfetter-threat-ingest@0.3.11 build: `npm run build-ts`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the unfetter-threat-ingest@0.3.11 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2018-11-16T21_12_55_749Z-debug.log
The command '/bin/sh -c npm run clean && npm run build' returned a non-zero code: 2