admin管理员组文章数量:1356265
I have a symfony project with the assetmapper package active. There is an app.js which imports:
import './styles/app.css';
import Wood from "./wood.js";
The gernerated importmap looks like this:
<script type="importmap">
{
"imports": {
"app": "/assets/app-g2dctYT.js",
"/assets/styles/app.css": "data:application/javascript,",
"/assets/wood.js": "/assets/wood-PRFWpuV.js"
}
}
</script>
On my Desktop Chrome. Everything works as expected. But on the mobile chrome on my android device (134.0.6998.135) it will try to load the file from /assets/wood.js instead of /assets/wood-PRFWpuV.js. If a manually edit the importmap making it "foo": "/assets/wood-PRFWpuV.js" and making it import Wood from "foo" accordingly it works. Is there a known issue on chrome Android with this or am I doing something wrong?
本文标签: Resolving Javascript Modules with importmap not working on android chromeStack Overflow
版权声明:本文标题:Resolving Javascript Modules with importmap not working on android chrome - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743962803a2569339.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论