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

build:doc 打包报错:Error: ENOENT: no such file or directory #3815

Open
4 tasks done
muyaCode opened this issue Apr 20, 2024 · 1 comment
Open
4 tasks done

build:doc 打包报错:Error: ENOENT: no such file or directory #3815

muyaCode opened this issue Apr 20, 2024 · 1 comment
Labels
bug: pending triage Maybe a bug, waiting for confirmation

Comments

@muyaCode
Copy link

Describe the bug

打包详情如下:

正在执行任务: pnpm run docs:build

[email protected] docs:build D:\Code[MyProject][Docs]\ProgramLearnNotes
vitepress build docs

vitepress v1.1.3

x Build failed in 1.71s
✖ building client + server bundles...
node:internal/fs/promises:887
const result = await binding.lstat(pathModule.toNamespacedPath(path),
^

Error: ENOENT: no such file or directory, lstat
at lstat (node:internal/fs/promises:887:32)
at findFile (file:///D:/Code/[MyProject]/[Docs]/ProgramLearnNotes/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:18226:29)
at addJsExtensionIfNecessary (file:///D:/Code/[MyProject]/[Docs]/ProgramLearnNotes/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:18220:20)
at resolveId (file:///D:/Code/[MyProject]/[Docs]/ProgramLearnNotes/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:18217:12)
at async ModuleLoader.resolveId (file:///D:/Code/[MyProject]/[Docs]/ProgramLearnNotes/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:18595:15)
at async Object.resolveId (file:///D:/Code/[MyProject]/[Docs]/ProgramLearnNotes/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:8247:10)
at async PluginDriver.hookFirstAndGetPlugin (file:///D:/Code/[MyProject]/[Docs]/ProgramLearnNotes/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:19511:28)
at async resolveId (file:///D:/Code/[MyProject]/[Docs]/ProgramLearnNotes/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:18192:26)
at async ModuleLoader.resolveId (file:///D:/Code/[MyProject]/[Docs]/ProgramLearnNotes/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:18595:15)
at async file:///D:/Code/[MyProject]/[Docs]/ProgramLearnNotes/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:18899:50 {
errno: -4058,
code: 'ENOENT',
syscall: 'lstat'
}

Node.js v20.9.0
 ELIFECYCLE  Command failed with exit code 1.

Reproduction

打包错误的文档:https://github.com/muyaCode/ProgramLearnNotes

而我本地同级目录下另一个文档,能成功打包:https://github.com/muyaCode/FrontEndLearnNotes

Expected behavior

能成功打包

System Info

系统:Windows 11 家庭中文版

Additional context

1713625960909

Validations

@muyaCode muyaCode added the bug: pending triage Maybe a bug, waiting for confirmation label Apr 20, 2024
@muyaCode
Copy link
Author

找到问题了:图片目录带有🦀️,读取不到,但是为什么报错不显示详细错误?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: pending triage Maybe a bug, waiting for confirmation
Projects
None yet
Development

No branches or pull requests

1 participant