Open block2k opened 11 months ago
I cloned your project, then set up HRM following the instructions of nestjs docs https://docs.nestjs.com/recipes/hot-reload
then I run the command: nest build --webpack --webpackPath webpack-hmr.config.js --watch and receive the error as shown in the image:
nest build --webpack --webpackPath webpack-hmr.config.js --watch
Cannot use import statement outside a module
I tried running npm run start:dev and the project still started up without errors
npm run start:dev
@Shchepotin Do you have any way to fix this error?
@block2k Sorry but no, because TypeORM has a problem with their config in HMR mode.
HMR
I cloned your project, then set up HRM following the instructions of nestjs docs https://docs.nestjs.com/recipes/hot-reload
then I run the command:
nest build --webpack --webpackPath webpack-hmr.config.js --watch
and receive the error as shown in the image:I tried running
npm run start:dev
and the project still started up without errors