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
Warnings at build time [x] referenced in [y] didn't resolve at build time, it will remain unchanged to be resolved at runtime #26379
Comments
Start a new pull request in StackBlitz Codeflow. |
Changing to And shouldn't it be this way to refer to local assets/public file? |
No it doesn't really do the trick. Because this results in the static file being copied as an asset. Which means that:
We're having this issue with our font faces, ie this (if we add the @font-face {
font-display: swap;
font-family: "Poppins";
font-style: normal;
font-weight: 100;
src:
url("/fonts/poppins/poppins-v19-100.woff2") format("woff2"),
url("/fonts/poppins/poppins-v19-100.woff") format("woff");
}
@font-face {
font-display: swap;
font-family: "Poppins";
font-style: normal;
font-weight: 300;
src:
url("/fonts/poppins/poppins-v19-300.woff2") format("woff2"),
url("/fonts/poppins/poppins-v19-300.woff") format("woff");
}
[...] This will then end up inside the manifest and all other places where we then have to specifically remove it from. And we still lose caching. |
I'm also seeing those warnings on all my Nuxt projects where I'm referencing files in my styles.
With |
I am also getting this warning at build time with:
in 3.11.0/1 leads to
|
Same issue. Since I have a lot of public files, too many warnings are generated during build. |
Same for me with version 3.11.1 |
Environment
Reproduction
https://stackblitz.com/edit/github-mrq86l-s2dqph
Describe the bug
After upgrading to 3.11, the build log is filled with messages like:
This is introduced when using images from the public folder in styles.
There is two examples in my reproduction, one in
main.css
and one in thestyle
tag ofapp.vue
.Running
npm run build
ornpm run generate
will produce the warnings when building the client and the server.Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: