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

bug: linux下执行docs:build报错 #1997

Open
ilvh opened this issue Dec 29, 2023 · 3 comments
Open

bug: linux下执行docs:build报错 #1997

ilvh opened this issue Dec 29, 2023 · 3 comments

Comments

@ilvh
Copy link

ilvh commented Dec 29, 2023

Version

2.2.16

OS Version

ubuntu20.04

Node.js Version

16.20.2

Browser Version

120.0.6099.129

Link to minimal reproduction

npx create-dumi

Steps to reproduce

npx create-dumi

pnpm docs:build

What is expected?

build successfully

What is actually happening?

image

Any additional comments? (optional)

No response

@alienzhangyw
Copy link

我也不知道为什么在Linux下打包会多出个~demos/:id/index.html

@actake
Copy link

actake commented Feb 1, 2024

我也不知道为什么在Linux下打包会多出个~demos/:id/index.html

碰到了同样的问题,windows上打包不会产生~demos/:id目录,但linux上会产生该目录;

目前临时的解决办法是,将 exportStatic 设置为 false

https://github.com/umijs/dumi/blob/83b4fabb3054d68b9da45246ff30ac4761c11bd9/src/features/exportStatic.ts#L31C1-L32C30

文档详见:https://d.umijs.org/config#exportstatic

@alienzhangyw
Copy link

我也不知道为什么在Linux下打包会多出个~demos/:id/index.html

碰到了同样的问题,windows上打包不会产生~demos/:id目录,但linux上会产生该目录;

目前临时的解决办法是,将 exportStatic 设置为 false

https://github.com/umijs/dumi/blob/83b4fabb3054d68b9da45246ff30ac4761c11bd9/src/features/exportStatic.ts#L31C1-L32C30

文档详见:https://d.umijs.org/config#exportstatic

#2009
我是直接把这个gitignore掉了

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

No branches or pull requests

3 participants