Error while running nestjs in production mode, cannot find module

后端 未结 4 1784
滥情空心
滥情空心 2021-02-07 07:12

I have implemented a generic class as below which might be causing the problem,

    import { Logger } from \'@nestjs/common\';
    import { PaginationOptionsInt         


        
4条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-07 07:19

    I've also seen the same problem due to a capitalized reference, when the filename is lowercase:

    import { SomeClass } from './Some.class'; 
    

    but the file was named some.class.ts

    Fixing the import resolved the error.

提交回复
热议问题