-
-
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
馃悰 Uncaught (in promise) TypeError: Failed to fetch dynamically imported module #1099
Comments
I'm running into the same issue. Is this a confirmed bug or are we just doing something wrong? |
same with me. I wanna resolve this issue but I have no clue. |
Wondering if it works when using it like this: import(`./en.js`).then(langFile => console.log(langFile)) Than it's just because parcel doesn't know what to precompile (should be a fairly easy fix in that case). |
hello folks, same here. I just want to dynamically display images stored in the // random images
const images = ['random.png', 'random2.png']
class App extends Component {
render() {
return (<div className="images">
{ images.map((img, i) => <div key={i}>
{ import(`../assets/${img}`).then(image => <img src={image} />) }
</div>) }
</div>)
}
} but i also get the How can this be achived with parcel ? |
Issue #125 might be related |
thanks @DeMoorJasper , i ended up using one of #1006 tips: In the case that it's the latter (you DON'T need code splitting), the answer is simple: We support wildcard globs out of the box! 馃殌 You should be able to just do:
|
I am metting the same problem. @DeMoorJasper |
Isn't the entire idea of code splitting is... say you have an app with 700 components, that you don't want to load them all on first load? I have the same problem as well.
I do agree that this is the issue... but... isn't that the entire point of code splitting? |
Uncaught (in promise) TypeError: Failed to fetch |
I have the same problem. David |
I got around our issue with the following:
|
bug report m9
馃帥 Configuration (.babelrc, package.json, cli command)
.babelrc
:package.json
:馃 Expected Behavior
Import successfully a
.js
file馃槸 Current Behavior
Throws error in console:
![image](https://user-images.githubusercontent.com/7550995/38123463-7dc8304c-33b1-11e8-8f91-1afdac8598a5.png)
馃拋 Possible Solution
I noob can't solutionate
馃敠 Context
Trying to make i18n support for my project
馃捇 Code Sample
The relevant piece of code:
馃實 Your Environment
1.6.2
9.6.1
5.6.0
Debian sid
The text was updated successfully, but these errors were encountered: