-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃悰 Loading local fonts via CSS returns error #659
Comments
I have the similar problem. When I comment the line of following, it will build pass. html,
body {
height: 100%;
/* background-image: url('../img/bg.png'); */
background-position: 50% 50%;
background-size: cover;
}
|
|
I also put it a validation before the It works! |
How did you resolve this @darita92 I'm running into the same problem. |
hey @FalkoJoseph, I went to the actual code of parcel to do this. On the file
So what I did to get rid of the error is put a validation before that line. Something like this:
|
I have the similar problem. |
Similar problem on pure js bundle. Can't see what actually caused this. Applying @darita92 's workaround works. Edit: @darita92 's workaround seems breaking code splitting. Parcel won't build bundle-loader in to the bundle. Investigating. Edit2: My error goes away by changing a dynamic import to regular import statement. I'm still investigating what caused this. What I've found is in some situations, |
Hi, @darita92, did you try to import assets first in your
|
This appears to be a bug with https://github.com/BoltDoggy/parcel-plugin-vue and not with parcel itself at least according to my testing with the repo provided by @bulatie EDIT: After looking at the sourcecode of Further discussion and fix: BoltDoggy/parcel-plugin-vue#24 |
I just added comments to |
I recommend you change the async addAsset(asset) function located in
|
馃悰 bug report
馃帥 Configuration (.babelrc, package.json, cli command)
馃 Expected Behavior
I have a css file that references some local fonts:
I import this file in my
main.js
file so it is bundled in the app.馃槸 Current Behavior
When trying to import the css file in my
main.js
I get the following error:馃拋 Possible Solution
Looking at the file with the error
JSPackager
I put it a validation before thethis.bundleLoaders.add(mod.type);
:馃敠 Context
馃捇 Code Sample
馃實 Your Environment
The text was updated successfully, but these errors were encountered: