Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
If you look at the deployed version, this is the source tree (note the presence of
If you compare to CodeSandbox's version, the dynamically imported files are missing:
Update: this is a known issue with CodeSandbox: codesandbox/codesandbox-client#1887.
Mhm... I'm not sure if the dynamic import itself is the problem, because I've manually tried it out and it works (check https://codesandbox.io/s/floral-lake-ou5wi
It may be a problem with CodeSandbox & dynamically importing/resolving mjs files, or it may be connected with CodeSandbox & Create-react-app bundler integration issues (which there were many).