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.

Warning / Errors when using Multer latest version

See original GitHub issue

Describe the bug When using multer version ^1.4.5-lts.1 as well as the latest version of this plugin we get the following error

npm WARN   multer@"^1.4.5-lts.1" from the root project
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer multer@"^1.4.2" from multer-gridfs-storage@5.0.2
npm WARN node_modules/multer-gridfs-storage
npm WARN   multer-gridfs-storage@"^5.0.2" from the root project
npm WARN 
npm WARN Conflicting peer dependency: multer@1.4.4
npm WARN node_modules/multer
npm WARN   peer multer@"^1.4.2" from multer-gridfs-storage@5.0.2
npm WARN   node_modules/multer-gridfs-storage
npm WARN     multer-gridfs-storage@"^5.0.2" from the root project

Environment “multer”: “^1.4.5-lts.1”, “multer-gridfs-storage”: “^5.0.2”,

  • I’m using multer-gridfs-storage version “multer”: “^1.4.5-lts.1”,

  • My installed MongoDb version is “mongodb”: “^4.5.0”,

  • I have Multer ^1.4.5-lts.1 installed to upload files

  • The Node version used to run the code is v17.9.0

  • I’m using Mongoose connection objects to create storage instances. The Mongoose version installed is ^6.3.5

To Reproduce Create a project with this as your package.json

{
  "name": "projectname",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "dev": "next dev",
    "build": "next build",
    "start": "next start",
    "lint": "next lint"
  },
  "dependencies": {
    "@next-auth/mongodb-adapter": "^1.0.3",
    "@turf/circle": "^6.5.0",
    "@turf/turf": "^6.5.0",
    "axios": "^0.27.2",
    "bootstrap": "^5.1.3",
    "bootstrap-daterangepicker": "^3.1.0",
    "crypto-js": "^4.1.1",
    "d3-request": "^1.0.6",
    "date-fns": "^2.28.0",
    "formidable": "^2.0.1",
    "gridfs-stream": "^1.1.1",
    "jquery": "^3.6.0",
    "mapbox-gl": "^2.8.2",
    "micro": "^9.3.4",
    "moment": "^2.29.3",
    "mongodb": "^4.5.0",
    "mongoose": "^6.3.5",
    "multer": "^1.4.5-lts.1",
    "multer-gridfs-storage": "^5.0.2",
    "multiparty": "^4.2.3",
    "next": "12.1.5",
    "next-auth": "^4.3.1",
    "next-connect": "^0.12.2",
    "react": "18.0.0",
    "react-bootstrap": "^2.3.1",
    "react-bootstrap-daterangepicker": "^7.0.0",
    "react-dom": "18.0.0",
    "react-map-gl": "^7.0.12",
    "recharts": "^2.1.10",
    "uuid": "^8.3.2"
  },
  "devDependencies": {
    "eslint": "8.13.0",
    "eslint-config-next": "12.1.5"
  }
}

Expected behavior no error or warnings.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

1reaction
redimongocommented, Jun 28, 2022

@devconcept Can we please roll this out, How would I do this without it being official? As who knows how long this will take to be approved?

I changed manually the version needed

“peerDependencies”: { “multer”: “^1.4.5-lts.1” },

But seems I can't remove the warning when I install new scripts.
0reactions
abitwisecommented, Sep 27, 2022

I mean why forking when there is already pull request here, please merge it

Read more comments on GitHub >

github_iconTop Results From Across the Web

I'm facing a error while installing Npm Multer for uploading ...
1 Answer 1 · clean cache with npm cache clean --force · install the latest version of npm globally as admin: npm install...
Read more >
multer-deprecation-warning-fix - npm
Latest version : 1.4.3, last published: a year ago. Start using multer-deprecation-warning-fix in your project by running `npm i ...
Read more >
File upload | NestJS - A progressive Node.js framework
Warning Multer cannot process data which is not in the supported multipart format ( multipart/form-data ). Also, note that this package is not...
Read more >
multer | npm - Open Source Insights
Warning. multer 1.4.1 is deprecated. OverviewDependencies DependentsCompare ... View information about checks and how to fix failures.
Read more >
Npm install issues? - General - Node-RED Forum
Please use the lodash package instead. npm WARN deprecated ini@1.3.5: Please ... Please upgrade to at l east Node.js 6 and version 1.4.4-lts.1...
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