node.js - TypeScript import总是提示 error TS2307: Cannot find module

风影

2018-03-02T17:19:49Z||2018-03-02T17:19:49Z

如果是Node.js的modules的话,找到tsconfig.json, 确保:

{
    "compilerOptions": {
        "moduleResolution": "node"
    }
}