Skip to content
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

yarn build 报错 #109

Closed
Jikexiaobai opened this issue Nov 2, 2022 · 2 comments
Closed

yarn build 报错 #109

Jikexiaobai opened this issue Nov 2, 2022 · 2 comments

Comments

@Jikexiaobai
Copy link

Jikexiaobai commented Nov 2, 2022

node版本为v16.14.0

报错信息如下:
error TS2688: Cannot find type definition file for 'node'.
The file is in the program because:
Entry point of type library 'node' specified in compilerOptions

tsconfig.json:29:7
29 "node"
~~~~~~
File is entry point of type library specified here.

tsconfig.json:3:14 - error TS6053: File 'ts-node/node16/tsconfig.json' not found.

3 "extends": "ts-node/node16/tsconfig.json",
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Found 2 errors in the same file, starting at: tsconfig.json:3

error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

image

@cxOrz
Copy link
Owner

cxOrz commented Nov 2, 2022

装依赖了没

@Jikexiaobai
Copy link
Author

抱歉,刚才没有看懂说明,忘记撞依赖了,现在懂了,谢谢大佬

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants