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.

MulterModule not found in @nestjs/common

See original GitHub issue

Bug Report

It’s mentioned in the documentation that Nestjs provides a built-in module for multer. However, on trying to import it from the @nestjs/common we received an error that the package doesn’t have any exported member with that name.

Current behaviour

“/node_modules/@nestjs/common”’ has no exported member ‘MulterModule’.

Input Code

import { Module, MulterModule } from '@nestjs/common';

@Module({
  imports: [
    MulterModule.register({
      dest: './public',
    }),
  ],
})
export class AppModule { }

Environment


Nest version: 6.14.2
 
For Tooling issues:
- Node version: 13.6.0
- Platform:  Windows 10

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
jmcdo29commented, Feb 29, 2020

The MulterModule comes from the @nestjs/platform-express package

1reaction
kamilmysliwieccommented, Mar 2, 2020

I’ve just added a hint image

Thank you for your contribution though

Read more comments on GitHub >

github_iconTop Results From Across the Web

MulterModule not found in @nestjs/common - Bountysource
It's mentioned in the documentation that Nestjs provides a built-in module for multer. However, on trying to import it from the @nestjs/common ......
Read more >
Why is my Upload-File POST not working using NEST.JS and ...
If MulterModule registered in the *.module.ts file it creates the upload directory outside of the src folder. which is a good practice.
Read more >
File upload | NestJS - A progressive Node.js framework
Multer handles data posted in the multipart/form-data format, which is primarily used for uploading files via an HTTP POST request. This module is...
Read more >
How to use the @nestjs/platform-express.MulterModule ... - Snyk
Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues...
Read more >
Class MulterModule - @nestjs/common
createAsyncOptionsProvider(options: MulterModuleAsyncOptions): Provider. Defined in platform-express/multer/multer.module.ts:43 ...
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