Skip to content

fail to build hexo #5408

@uiolee

Description

@uiolee

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions