小编Jos*_*lez的帖子

Nest.js框架热重载不起作用

我已按照文档中的步骤操作:

\n\n

https://docs.nestjs.com/techniques/hot-reload

\n\n

我正在运行此命令:npm run webpack但它关闭了,它返回了提示,并且不会继续监视文件:

\n\n
    gabriel@roraima-tv:/var/www/studying/tera-ping-pong$ npm run webpack\n\n    > tera-ping-pong@0.0.0 webpack /var/www/studying/tera-ping-pong\n    > webpack --config webpack.config.js\n\n\n    webpack is watching the files\xe2\x80\xa6\n\n    Hash: 6e13d56ba7d77331e5c2\n    Version: webpack 4.23.1\n    Time: 3014ms\n    Built at: 11/01/2018 1:39:11 PM\n                       Asset       Size  Chunks             Chunk         Names\n    dist/app.controller.d.ts  177 bytes          [emitted]  \n        dist/app.module.d.ts   35 bytes          [emitted]  \n       dist/app.service.d.ts   56 bytes          [emitted]  \n              dist/main.d.ts   11 bytes          [emitted]  \n          dist/main.hmr.d.ts   11 bytes          [emitted]  \n                   server.js     39 KiB    main  [emitted]  main\n    Entrypoint main = server.js\n    [0] …
Run Code Online (Sandbox Code Playgroud)

node.js webpack-dev-server nestjs

5
推荐指数
3
解决办法
2万
查看次数

打字稿错误“找不到名称'require'。并且找不到名称'process'。”

打字稿错误“找不到名称'require'。并且找不到名称'process'。” 即使已经在其编译器选项中定义了参数“ moduleResolution”:“ node”

以下是我当前的tsconfig.json

{
  "compilerOptions": {
     "target": "es2015",
     "lib": ["es2015", "es6"],
     "types": ["reflect-metadata"],
     "moduleResolution": "node",
     "module": "commonjs",
     "rootDir": "src",
     "outDir": "./build",
     "emitDecoratorMetadata": true,
     "experimentalDecorators": true,
     "sourceMap": true,
     "declaration": false
  },
  "include": [
     "src/**/*"
  ],
  "exclude": [
     "node_modules"
  ]
Run Code Online (Sandbox Code Playgroud)

}

compiler-errors typescript

2
推荐指数
1
解决办法
3392
查看次数