question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add @types/multer as peerDependency

See original GitHub issue

Sorting

  • 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

Screen Shot 2022-05-10 at 4 15 23 PM

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

  1. A Snyk scan has identified that tsoa@3.14.1 had vulnerable dependencies.
  2. I created a PR to upgrade to tsoa@4.0.0, which is then ran through a number of CircleCI tests.
  3. 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.
  4. 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:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
WoHcommented, Jun 28, 2022

Please go ahead

0reactions
dxphilocommented, Jun 28, 2022

Would love to pick up this issue if it is not yet assigned to anybody. @WoH

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found