Add @types/multer as peerDependency
See original GitHub issueSorting
-
I’m submitting a …
- bug report
- feature request
- support request
-
I confirm that I
- used the search to make sure that a similar issue hasn’t already been submit
Expected Behavior
The yarn build
CircleCI test should pass.
Current Behavior
Possible Solution
I’m not aware of any solutions, so either a bug fix for this issue or a workaround would be appreciated.
Steps to Reproduce
- A Snyk scan has identified that tsoa@3.14.1 had vulnerable dependencies.
- I created a PR to upgrade to tsoa@4.0.0, which is then ran through a number of CircleCI tests.
- The last test
yarn build
fails due to the following error:node_modules/@tsoa/runtime/dist/config.d.ts:43:18 - error TS2709: Cannot use namespace 'MulterOpts' as a type.
- The PR cannot be approved and merged.
Context (Environment)
Version of the library: 4.0.0 Version of NodeJS: 16.14.2
- Confirm you were using yarn not npm: [x]
Detailed Description
A fix for error TS2709.
Breaking change?
No
Issue Analytics
- State:
- Created a year ago
- Comments:5
Top Results From Across the Web
npm WARN ... requires a peer of ... but none is installed. You ...
So you cannot install peer dependencies automatically with npm 3 and upwards. Updated Solution: Use following for each peer dependency to ...
Read more >@types/multer - npm
Start using @types/multer in your project by running `npm i @types/multer`. There are 216 other projects in the npm registry using ...
Read more >A tip on using peer dependencies with TypeScript
To address this, the simplest solution I've found is to duplicate that dependency over to "devDependencies". Doing this makes sure that it is ......
Read more >npm install eresolve unable to resolve dependency tree - You.com ...
Solution 1: Ignore the peerDependencies. The easiest way to fix the issue is to pass an additional parameter –legacy-peer-deps to npm install. The...
Read more >@dynamico/express-middleware - npm package | Snyk
Add the library along with the required dependencies to your server. ... from the peerDependencies section) and all the previously registered host app....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Please go ahead
Would love to pick up this issue if it is not yet assigned to anybody. @WoH