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

中文路径下无法构建项目 #6874

Open
xmsz-stu opened this issue Apr 25, 2024 · 1 comment
Open

中文路径下无法构建项目 #6874

xmsz-stu opened this issue Apr 25, 2024 · 1 comment

Comments

@xmsz-stu
Copy link

Describe the bug

ice.js 2.6.9

> cross-env BUILD_ID=$BUILD_ID icejs build

ice.js 2.6.9
Browserslist: caniuse-lite is outdated. Please run:
  npx update-browserslist-db@latest
  Why you should do it regularly: https://github.com/browserslist/update-db#readme
The CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
info [swc] swc enabled, configurations about babel will be ignored
info swc is specified as default minification
minify 'swc' is not supported in vite mode, specify 'terser' as minifier
info [analyze] build-plugin-ice-request removed after runtime analyse
vite v2.9.18 building for production...
✓ 453 modules transformed.
[vite:css] Can't find stylesheet to import.
  ╷
7 │ @import './assets/ic.scss';
  │         ^^^^^^^^^^^^^^^^^^
  ╵
  ../../packages/shared/global.scss 7:9  @import
  src/global.scss 1:42                   root stylesheet
file: /var/lib/jenkins/workspace/素材管理/apps/material/src/global.scss
Error: Can't find stylesheet to import.
  ╷
7 │ @import './assets/ic.scss';
  │         ^^^^^^^^^^^^^^^^^^
  ╵
  ../../packages/shared/global.scss 7:9  @import
  src/global.scss 1:42                   root stylesheet
Vite Failed to build.
ERR! Can't find stylesheet to import.
  ╷
7 │ @import './assets/ic.scss';
  │         ^^^^^^^^^^^^^^^^^^
  ╵
  ../../packages/shared/global.scss 7:9  @import
  src/global.scss 1:42                   root stylesheet
Error: Can't find stylesheet to import.
  ╷
7 │ @import './assets/ic.scss';
  │         ^^^^^^^^^^^^^^^^^^
  ╵
  ../../packages/shared/global.scss 7:9  @import
  src/global.scss 1:42                   root stylesheet
    at Object._newRenderError (/var/lib/jenkins/workspace/素材管理/node_modules/.pnpm/[email protected]/node_modules/sass/sass.dart.js:13174:19)

有中文路径就构建不了

Expected behavior

中文路径可以构建

Actual behavior

No response

Version of ice.js

2.6.9

Content of build.json or ice.config.mts

No response

Additional context

No response

@xmsz-stu xmsz-stu added the bug label Apr 25, 2024
@ClarkXia
Copy link
Collaborator

中文目录我们看下怎么解决,项目研发过程中推荐不要出现中文目录

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

2 participants