toolkit fails to build
rectalogic opened this issue · comments
The toolkit is not currently buildable due to a breaking change in @types/prettier
and the lack of a package-lock.json
- apparently due to DefinitelyTyped/DefinitelyTyped#60310
$ npm install
[...]
$ npm run bootstrap
> bootstrap
> lerna bootstrap --no-ci
lerna notice cli v4.0.0
lerna info versioning independent
lerna info Bootstrapping 8 packages
lerna info Symlinking packages and binaries
lerna success Bootstrapped 8 packages
> postbootstrap
> lerna run build
lerna notice cli v4.0.0
lerna info versioning independent
lerna info Executing command in 4 packages: "npm run build"
lerna info run Ran npm script 'build' in '@twilio-labs/serverless-runtime-types' in 0.4s:
> @twilio-labs/serverless-runtime-types@2.2.3-beta.0 build
> node bundler.js
lerna ERR! npm run build exited 2 in '@twilio-labs/serverless-api'
lerna ERR! npm run build stdout:
> @twilio-labs/serverless-api@5.4.2-beta.0 build
> tsc
node_modules/@types/prettier/index.d.ts(41,54): error TS2315: Type 'IsTuple' is not generic.
node_modules/@types/prettier/index.d.ts(53,6): error TS2456: Type alias 'IsTuple' circularly references itself.
node_modules/@types/prettier/index.d.ts(53,65): error TS2574: A rest element type must be an array type.
node_modules/@types/prettier/index.d.ts(53,84): error TS2315: Type 'IsTuple' is not generic.
node_modules/@types/prettier/index.d.ts(96,5): error TS2589: Type instantiation is excessively deep and possibly infinite.
node_modules/@types/prettier/index.d.ts(131,5): error TS2589: Type instantiation is excessively deep and possibly infinite.
node_modules/@types/prettier/index.d.ts(165,5): error TS2589: Type instantiation is excessively deep and possibly infinite.
lerna ERR! npm run build exited 2 in '@twilio-labs/serverless-api'
lerna WARN complete Waiting for 1 child process to exit. CTRL-C to exit immediately.
This has been resolved now. Thanks for opening the issue.