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

新版本代码,启动报错, #25

Open
runkingzhang opened this issue Dec 12, 2023 · 4 comments
Open

新版本代码,启动报错, #25

runkingzhang opened this issue Dec 12, 2023 · 4 comments

Comments

@runkingzhang
Copy link

这边定时器启动报错,解决了半天没有处理过好
Cannot find type definition file for 'cron'.
The file is in the program because:
Entry point for implicit type library 'cron
请问再那里修改才可以启动

@runkingzhang
Copy link
Author

dist 里面的代码是好的

@runkingzhang
Copy link
Author

cnpm install @types/cron --save-dev
"typeRoots": ["node_modules/@type"],
解决问题

@YangFong
Copy link

YangFong commented Apr 9, 2024

同问题,在 package.json 中 移除掉 @types/cron@2.4.0 即可。

参见:https://www.npmjs.com/package/@types/cron

image

@87789771
Copy link
Owner

我也没遇到。不过能解决就行。_

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

3 participants