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

fail to build hexo #5408

Closed
5 tasks done
uiolee opened this issue Jan 26, 2024 · 4 comments · Fixed by #5411
Closed
5 tasks done

fail to build hexo #5408

uiolee opened this issue Jan 26, 2024 · 4 comments · Fixed by #5411
Labels
bug Something isn't working

Comments

@uiolee
Copy link
Member

uiolee commented Jan 26, 2024

Check List

  • I have already read Docs page & Troubleshooting page.
  • I have already searched existing issues and they are not help to me.
  • I examined error or warning messages and it's difficult to solve.
  • I am using the latest version of Hexo. (run hexo version to check)
  • My Node.js is matched the required version.

Expected behavior

Build successfully

Actual behavior

https://github.com/hexojs/hexo/actions/runs/7666372926/job/20894038821?pr=5407

fail

> [email protected] build D:\hexo
> tsc -b

node_modules/.pnpm/[email protected]/node_modules/chokidar/types/index.d.ts:9:14 - error TS2420: Class 'import("D:/hexo/node_modules/.pnpm/[email protected]/node_modules/chokidar/types/index").FSWatcher' incorrectly implements interface 'import("fs").FSWatcher'.
  Type 'FSWatcher' is missing the following properties from type 'FSWatcher': ref, unref

9 export class FSWatcher extends EventEmitter implements fs.FSWatcher {
               ~~~~~~~~~


Found 1 error.

 ELIFECYCLE  Command failed with exit code 1.

How to reproduce?

  1. git clone
  2. npm i
  3. npm run build

Is the problem still there under Safe mode?

..

Your Node.js & npm version

No response

Your Hexo and Plugin version

No response

Your package.json

No response

Your site's _config.yml (Optional)

No response

Others

@uiolee uiolee added the bug Something isn't working label Jan 26, 2024
@uiolee
Copy link
Member Author

uiolee commented Jan 26, 2024

-    "@types/node": "^18.11.8",
+    "@types/node": "^18.11.8 <18.19.9",

typescript build will failed in @types/[email protected] and newer.

this issue existed in hexo-fs too

@panxsz
Copy link

panxsz commented Jan 27, 2024

管理员_ Windows PowerShell 2024_1_27 14_07_10

@uiolee
Copy link
Member Author

uiolee commented Jan 29, 2024

paulmillr/chokidar#1299

@stevenjoezhang
Copy link
Member

It's fixed in chokidar 3.6.0
We can update it now: hexojs/hexo-fs#193

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants