MulterModule not found in @nestjs/common
See original GitHub issueBug 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:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top 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 >
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 Free
Top 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
The
MulterModule
comes from the@nestjs/platform-express
packageI’ve just added a hint
Thank you for your contribution though