-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error TS2307: Cannot find module 'path'. #43
Comments
Could you write here your tsconfig.json? |
{
"compilerOptions": {
"module": "CommonJS",
"target": "es2017",
"moduleResolution": "node",
"allowJs": false,
"declaration": true,
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"strict": false,
"locale": "zh-TW",
"pretty": true,
"traceResolution": true,
"newLine": "lf"
},
"jsdoc": "jsdoc",
"exclude": [
"node_modules",
"test"
]
} |
I think, your tsconfig.json is missing {
"compilerOptions": {
"types": ["node"]
}
} An example from this project tsconfig.json |
can output now when i confing this {
"entryFile": [
"index.ts",
"lib/loader/index.ts",
"lib/loader/segment/index.ts"
]
} the output dir only has one md file and it is api about when i confing this {
"entryFile": [
"index.ts",
]
} api only has i trying use on node-segment-dict |
What TypeScript version do you use? Because I don't see it in
|
@bluelovers Could you make a separate branch with |
https://github.com/bluelovers/node-segment-dict/tree/ts-docs-gen ts version: 2.9.0-dev.20180420 (install on global |
@bluelovers Thanks.
I have inspected your code. Some TypeScript's declarations are not supported yet by our I will reproduce your project cases and add them as tests. For now, we are busy rewriting |
ts-docs-gen 0.2.0
but i have
@types/node
in mynode_modules
The text was updated successfully, but these errors were encountered: