-
-
Notifications
You must be signed in to change notification settings - Fork 154
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
Failed to import - @douyin/semi-ui #393
Comments
where you get the import https://esm.sh/v89/@douyinfe/[email protected]/es2022/lib/es/popover/popover.css.js ? |
save the following code as a .html suffix file and open it with your browser, and open the browser debugger to observe <!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
</head>
<body></body>
<script type="module">
import * as SemiUI from 'https://esm.sh/@douyinfe/semi-ui'
console.log(SemiUI)
</script>
</html> After waiting for a period of time, you can observe that the files with the .js suffix are loaded successfully, but all the files with the .css.js suffix fail to load, some are hanged for a long time and no response, some report 500, some report 520, some report 521. According to the compiled source code, it is found that the .css.js file is directly imported. According to the source code, it is a directly imported .scss file. could it be because esm.sh is missing the scss loader? |
By the way, I found a puzzling phenomenon. I use the Bundle mode import has been unable to build and import success, always time out. eg. bundle mode imported always timeout css mode imported success |
https://esm.sh/v135/@douyinfe/[email protected]/es2022/semi-ui.css |
|
Failing module
Error message
Everything seems to be ok, but for .scss style files it hangs up
eg.
for
https://esm.sh/v89/@douyinfe/[email protected]/es2022/lib/es/popover/popover.css.js
:Additional info
The text was updated successfully, but these errors were encountered: