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

Error in import less file in view-design #1737

Closed
liyan1105 opened this issue Jan 27, 2021 · 0 comments
Closed

Error in import less file in view-design #1737

liyan1105 opened this issue Jan 27, 2021 · 0 comments

Comments

@liyan1105
Copy link

Describe the bug

I am using view-design in my project, and then I needed to customize the theme, so I introduced the following code according to the view-design documentation,

@import "view-design/src/styles/index.less";

Then I get the following error

$ vite build
building for production...
[vite:css] ENOENT: no such file or directory, open 'C:\project\vite-less-import-bug\src\fonts\ionicons.woff2'
file: C:/project/vite-less-import-bug/src/global.less
error during build:
Error: ENOENT: no such file or directory, open 'C:\project\vite-less-import-bug\src\fonts\ionicons.woff2'
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

I have been looking at the vite code and I think there is something wrong with URL path handling in CSS. Can someone help me?

Reproduction

https://github.com/liyan1105/vite-less-import-bug.git

System Info

  • vite version: beta.48
  • Operating System: windows 10
  • Node version: 14.15.3
  • Package manager (npm/yarn/pnpm) and version: yarn 1.19.1
@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant