muxinc / strapi-plugin-mux-video-uploader

A Strapi plugin for managing uploads to Mux.
https://mux.com
23 stars 16 forks source link

error TS2339: Property 'body' does not exist on type 'Request' #5

Closed lulato closed 3 years ago

lulato commented 3 years ago

I was trying to install the package and I get this error. I'm using strapi 3.1.4, any help would be appreciated.

lulato$yarn add strapi-plugin-mux-video-uploader
yarn add v1.22.4
warning ../package.json: No license field
[1/5] πŸ”  Validating package.json...
[2/5] πŸ”  Resolving packages...
warning strapi-plugin-mux-video-uploader > axios@0.20.0: Critical security vulnerability fixed in v0.21.1. For more information, see https://github.com/axios/axios/pull/3410
[3/5] 🚚  Fetching packages...
[4/5] πŸ”—  Linking dependencies...
warning "strapi-admin > bootstrap@4.5.2" has unmet peer dependency "jquery@1.9.1 - 3".
warning "strapi-admin > bootstrap@4.5.2" has unmet peer dependency "popper.js@^1.16.1".
warning "strapi-plugin-graphql > graphql-playground-middleware-koa@1.6.20" has unmet peer dependency "koa@^2".
warning "strapi-plugin-graphql > graphql-type-long@0.1.1" has incorrect peer dependency "graphql@^0.9.1 || ^0.10.0 || ^0.12.0 || ^0.13.0".
warning "strapi-plugin-users-permissions > grant-koa@5.2.0" has unmet peer dependency "koa@>=2.0.0".
warning "strapi-plugin-mux-video-uploader > styled-components@5.2.1" has unmet peer dependency "react-is@>= 16.8.0".
warning "strapi-plugin-mux-video-uploader > strapi-helper-plugin > bootstrap@4.6.0" has unmet peer dependency "jquery@1.9.1 - 3".
warning "strapi-plugin-mux-video-uploader > strapi-helper-plugin > bootstrap@4.6.0" has unmet peer dependency "popper.js@^1.16.1".
warning "strapi-plugin-mux-video-uploader > strapi-helper-plugin > @buffetjs/utils@3.3.3-next.2" has unmet peer dependency "yup@^0.27.0".
warning "strapi-plugin-mux-video-uploader > @buffetjs/core > @buffetjs/utils@3.3.4" has unmet peer dependency "yup@^0.27.0".
[5/5] πŸ”¨  Building fresh packages...
[-/7] ⠁ waiting...
[-/7] ⠁ waiting...
[3/7] ⠁ fsevents
[7/7] ⠁ strapi-plugin-mux-video-uploader
error /Users/lulato/Documents/Code/lulato-strapi-cms/node_modules/strapi-plugin-mux-video-uploader: Command failed.
Exit code: 2
Command: tsc
Arguments: 
Directory: /Users/lulato/Documents/Code/lulato-strapi-cms/node_modules/strapi-plugin-mux-video-uploader
Output:
controllers/mux-asset.ts(51,68): error TS2339: Property 'body' does not exist on type 'Request'.
controllers/mux-asset.ts(67,84): error TS2339: Property 'body' does not exist on type 'Request'.
controllers/mux-settings.ts(22,35): error TS2339: Property 'body' does not exist on type 'Request'.
msarelo commented 3 years ago

Same here. Anyone fix this issue?


controllers/mux-asset.ts(67,84): error TS2339: Property 'body' does not exist on type 'Request'.
controllers/mux-settings.ts(22,35): error TS2339: Property 'body' does not exist on type 'Request'.
controllers/mux.ts(15,28): error TS2339: Property 'body' does not exist on type 'Request'.
controllers/mux.ts(40,28): error TS2339: Property 'body' does not exist on type 'Request'.
erikpena commented 3 years ago

Hey @msarelo and @lulato, So this had to do with some missing typing definitions. We've added this in a PR that is coming shortly to main and this should resolve issues.

erikpena commented 3 years ago

Hello @msarelo and @lulato, we just created a release for 1.2.0 that should address thisβ€”

https://github.com/muxinc/strapi-plugin-mux-video-uploader/releases/tag/v1.2.0

I'm going to be closing this issue. Thank you!