-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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 import fonts outside the root
#1531
Labels
Comments
Hmm, the repro works for me on macOS, likely a windows path related issue. |
Merged
Please reopen. It is broken by 1342108 (cc @CHOYSEN ). I think that eslint rules should be fixed or smart IDE like IntelliJ IDEA should be used to catch such regression. Fix is very trivial:
|
develar
added a commit
to develar/vite
that referenced
this issue
Mar 2, 2021
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
If the root is not at the same level as the node_modules, then when you try to import a fonts from
node_modules
, the fonts are not loaded.The style file itself is successfully imported. However, fonts are requested at:
always returns with 404 error.
Reproduction
npm install
npm run dev
System Info
vite
version: 2.0.0-beta.27The text was updated successfully, but these errors were encountered: