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

can't build game #22

Open
1le opened this issue Jan 26, 2024 · 2 comments
Open

can't build game #22

1le opened this issue Jan 26, 2024 · 2 comments

Comments

@1le
Copy link

1le commented Jan 26, 2024

On Windows, running npm run build returns:

> [email protected] clean
> rimraf dist/* public/* .assetpack/*

Error: Illegal characters in path.
    at pathArg (file:///D:/dev/open-games/bubbo-bubbo/node_modules/rimraf/dist/esm/path-arg.js:40:33)
    at file:///D:/dev/open-games/bubbo-bubbo/node_modules/rimraf/dist/esm/index.js:17:54
    at Array.map (<anonymous>)
    at file:///D:/dev/open-games/bubbo-bubbo/node_modules/rimraf/dist/esm/index.js:17:42
    at main (file:///D:/dev/open-games/bubbo-bubbo/node_modules/rimraf/dist/esm/bin.mjs:243:15)
    at file:///D:/dev/open-games/bubbo-bubbo/node_modules/rimraf/dist/esm/bin.mjs:251:5 {
  path: 'D:\\dev\\open-games\\bubbo-bubbo\\dist\\*',
  code: 'EINVAL'
}
ERROR: "clean" exited with 1.

tried with node 18 and 20, rifraf 5 and 4.2

@1le
Copy link
Author

1le commented Jan 26, 2024

seems like an issue with rifraf and that it fails when testing D:\dev\open-games\bubbo-bubbo\dist\* against /[*|"<>?:]/

@AlphaGamingArcade
Copy link

AlphaGamingArcade commented Feb 1, 2024

I use del-cli
https://www.npmjs.com/package/del-cli
npm install --global del-cli
and I replaced rimraf with del-cli
"prestart": "run-s assets", "start": "vite --open", "assets": "assetpack", "prebuild": "run-s clean types assets", "build": "vite build", "types": "tsc", "prepreview": "run-s build", "preview": "vite preview --open", "clean": "del-cli public/assets/* dist/* .assetpack/*"

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

2 participants