当我从命令行运行我的server.js时,一切正常,但是当我从VS Code调试器运行它时,我得到了一个较旧的graphql类型的缓存版本。我假设这是一个缓存问题,有没有办法清除它?
这是我的launch.json,以防它有用:
{
"version": "0.2.0",
"configurations": [
{
"name": "Backend Debug",
"type": "node",
"request": "launch",
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/babel-node",
"runtimeArgs": ["--nolazy"],
"program": "${workspaceRoot}/server.js",
"stopOnEntry": false,
"env": {
"NODE_ENV": "development"
},
"console": "internalConsole",
"sourceMaps": true
}
]
}