Build failure (@types/isomorphic-fetch)
PatSmuk opened this issue · 1 comments
PatSmuk commented
Vortigern fails to build due to outdated @types/isomorphic-fetch
.
C:\Users\Pat\Source\vortigern>npm start
> vortigern@0.1.2 prestart C:\Users\Pat\Source\vortigern
> npm run build
> vortigern@0.1.2 prebuild C:\Users\Pat\Source\vortigern
> npm run clean
> vortigern@0.1.2 clean C:\Users\Pat\Source\vortigern
> rimraf build
> vortigern@0.1.2 build C:\Users\Pat\Source\vortigern
> webpack --config config/webpack/index.js
[at-loader] Using typescript@2.3.1 from typescript and "tsconfig.json" from C:\Users\Pat\Source\vortigern/tsconfig.json.
[at-loader] Checking started in a separate process...
[at-loader] Checking finished with 13 errors
Hash: de971dd61af0e317b59a
Version: webpack 2.4.1
Time: 10438ms
[7] ./~/react-dom/lib/ReactMount.js 25.5 kB {0} [built]
[8] (webpack)/buildin/module.js 517 bytes {0} [built]
[10] ./~/react-hot-api/modules/index.js 57 bytes {0} [built]
[11] ./~/react-hot-loader/RootInstanceProvider.js 1.18 kB {0} [built]
[12] ./~/react-hot-loader/makeExportsHot.js 1.73 kB {0} [built]
[239] ./src/client.tsx 2.46 kB {0} [built]
[240] ./src/vendor/main.ts 1.48 kB {0} [built]
[241] (webpack)-hot-middleware/client.js?reload=true 6.68 kB {0} [built]
[303] ./~/es6-promise/dist/es6-promise.js 28.5 kB {0} [built]
[383] ./~/querystring-es3/index.js 127 bytes {0} [built]
[384] ./~/react-dom/index.js 59 bytes {0} [built]
[474] ./src/app/redux/store.ts 2.83 kB {0} [built]
[475] ./src/app/routes/index.tsx 1.97 kB {0} [built]
[547] ./~/strip-ansi/index.js 161 bytes {0} [built]
[562] multi webpack-hot-middleware/client?reload=true ./src/client.tsx ./src/vendor/main.ts 52 bytes {0} [built]
+ 548 hidden modules
ERROR in [at-loader] ./node_modules/@types/isomorphic-fetch/index.d.ts:45:5
TS2403: Subsequent variable declarations must have the same type. Variable 'referrerPolicy' must be of type 'ReferrerPolicy', but here has type 'string'.
ERROR in [at-loader] ./node_modules/@types/isomorphic-fetch/index.d.ts:46:5
TS2403: Subsequent variable declarations must have the same type. Variable 'mode' must be of type 'RequestMode', but here has type 'string'.
ERROR in [at-loader] ./node_modules/@types/isomorphic-fetch/index.d.ts:47:5
TS2403: Subsequent variable declarations must have the same type. Variable 'credentials' must be of type 'RequestCredentials', but here has type 'string'.
ERROR in [at-loader] ./node_modules/@types/isomorphic-fetch/index.d.ts:48:5
TS2403: Subsequent variable declarations must have the same type. Variable 'cache' must be of type 'RequestCache', but here has type 'string'.
ERROR in [at-loader] ./node_modules/@types/isomorphic-fetch/index.d.ts:49:5
TS2403: Subsequent variable declarations must have the same type. Variable 'redirect' must be of type 'RequestRedirect', but here has type 'string'.
ERROR in [at-loader] ./node_modules/@types/isomorphic-fetch/index.d.ts:56:14
TS2403: Subsequent variable declarations must have the same type. Variable 'cache' must be of type 'RequestCache', but here has type 'string'.
ERROR in [at-loader] ./node_modules/@types/isomorphic-fetch/index.d.ts:57:14
TS2403: Subsequent variable declarations must have the same type. Variable 'credentials' must be of type 'RequestCredentials', but here has type 'string'.
ERROR in [at-loader] ./node_modules/@types/isomorphic-fetch/index.d.ts:58:14
TS2403: Subsequent variable declarations must have the same type. Variable 'destination' must be of type 'RequestDestination', but here has type 'string'.
ERROR in [at-loader] ./node_modules/@types/isomorphic-fetch/index.d.ts:63:14
TS2403: Subsequent variable declarations must have the same type. Variable 'mode' must be of type 'RequestMode', but here has type 'string'.
ERROR in [at-loader] ./node_modules/@types/isomorphic-fetch/index.d.ts:64:14
TS2403: Subsequent variable declarations must have the same type. Variable 'redirect' must be of type 'RequestRedirect', but here has type 'string'.
ERROR in [at-loader] ./node_modules/@types/isomorphic-fetch/index.d.ts:66:14
TS2403: Subsequent variable declarations must have the same type. Variable 'referrerPolicy' must be of type 'ReferrerPolicy', but here has type 'string'.
ERROR in [at-loader] ./node_modules/@types/isomorphic-fetch/index.d.ts:67:14
TS2403: Subsequent variable declarations must have the same type. Variable 'type' must be of type 'RequestType', but here has type 'string'.
ERROR in [at-loader] ./node_modules/@types/isomorphic-fetch/index.d.ts:94:14
TS2403: Subsequent variable declarations must have the same type. Variable 'type' must be of type 'ResponseType', but here has type 'string'.
empz commented
I can confirm that updating @types/isomorphic-fetch
fixes the issue.