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.

FileFieldsInterceptor not found in v6.0.1

See original GitHub issue

[X ] Regression [ ] Bug report [ ] Feature request [ ] Documentation issue or request [ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Current behavior

The documentation says nothing of a name or package change for the “FileFieldsInterceptor”, after I updated It gives me the following error:

error TS2305: Module '"../../../node_modules/@nestjs/common"' has no exported member 'FileFieldsInterceptor'.

   FileFieldsInterceptor,
    at createTSError (/app/node_modules/ts-node/src/index.ts:226:12)
    at getOutput (/app/node_modules/ts-node/src/index.ts:335:40)
    at Object.compile (/app/node_modules/ts-node/src/index.ts:368:11)
    at Module.m._compile (/app/node_modules/ts-node/src/index.ts:414:43)
    at Module._extensions..js (internal/modules/cjs/loader.js:712:10)
    at Object.require.extensions.(anonymous function) [as .ts] (/app/node_modules/ts-node/src/index.ts:417:12)
    at Module.load (internal/modules/cjs/loader.js:600:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
    at Function.Module._load (internal/modules/cjs/loader.js:531:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)

Expected behavior

It should not give any error

Nest version: 6.0.1

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
kamilmysliwieccommented, Mar 21, 2019

@pisix use @nestjs/platform-express, not @nestjs/common. I just updated the docs.

1reaction
kamilmysliwieccommented, Mar 19, 2019

FileFieldsInterceptor uses multer which is compatible only with express (thus it’s exported from @nestjs/platform-express). I’ll update docs shortly

Read more comments on GitHub >

github_iconTop Results From Across the Web

nestjs/nest | Coveralls - Test Coverage History & Statistics
Test code coverage history for nestjs/nest.
Read more >
Upload file using nestjs and multer - Stack Overflow
the import called FileInterceptor does not exist withing @nestjs/common package int the latest version of NestJS. the code looks a bit too ...
Read more >
@nestjs/common: Versions | Openbase
Full version history for @nestjs/common including change logs.
Read more >
File upload | NestJS - A progressive Node.js framework
Warning Multer cannot process data which is not in the supported multipart format ... FileTypeValidator class uses the type as detected by multer....
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