-
-
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
background-image css rule raises "Uncaught (in promise) Error: Cannot find module" in console #865
Comments
I'm seeing something very similar when trying to get hmr working with the latest parcel version. |
Some findings: function newRequire(name){
...
console.log(name)
...
}
// prints
12
0
13
11
["a34b5839f12b33bc85271b84ecf5f50f.png", 8]
["a34b5839f12b33bc85271b84ecf5f50f.png", 8] This doesn't seem right (sometimes array, sometimes number). Content of |
I just add |
@realdennis good for you! ^_^ |
@targumon I mean that if you have |
The last version without this error is 1.4.1 The |
Just confirming that this is a bug for me in 1.7.1 and I can verify what @skotniczny said that 1.4.1 is the last version where this works correctly for me. |
@devongovett @DeMoorJasper Guys this looks like a regression!! I ran into this when using Parcel myself 😟 I did some digging and the root cause of the issue (the reason why it works in The repro for this issue is pretty easy, but I added mine to my parcel-issue-repro if you wanna just use that to make your life easier. For anybody else running into this issue looking for a quick fix: Run Parcel with the
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. |
Choose one: is this a 🐛 bug report or 🙋 feature request?
This is a 🐛 bug report.
🎛 Configuration
Here's the smallest reproducible configuration. No .babelrc, just 3 simple files:![bg_diag.png](https://user-images.githubusercontent.com/7461344/36420422-b34c4b90-163d-11e8-9ad0-c1050e25b9dc.png)
index.html -
<link rel="stylesheet" href="index.css">
in head and<div>hi</div>
in body.index.css -
div { background: url("bg_diag.png"); }
bg_diag.png -
🤔 Expected Behavior
Clean console
😯 Current Behavior
http://localhost:1234/ seems okay (there's a single network request and the page loads with that background-image for the div element).
However, there's an error in console:
🌍 Your Environment
The text was updated successfully, but these errors were encountered: