manut
(Manuel Tancoigne)
2026 年9 月 29 日 09:47
1
你好,
在一个全新的 Discourse 开发实例中,运行依赖于其他插件的插件测试时会失败。
复现步骤:
创建一个新的开发容器:sudo d/boot_dev --init,并完成设置
访问 http://localhost:3000/tests?target=discourse-calendar
页面空白,控制台报错:Uncaught (in promise) Error: TypeError: The specifier “discourse/plugins/styleguide?” was a bare specifier, but was not remapped to anything. Relative module specifiers must start with “./”, “../” or “/”.
1 个赞
感谢你的报告,我已在 Firefox 中复现了该问题,并提交了修复补丁。合并后,此问题应该就能恢复正常了。
main ← dev-qunit-import-map
merged 04:49PM - 29 Sep 26 UTC
Firefox ignores an import map once any module has started loading, so plugin tes… t pages failed to boot there with `The specifier "discourse/plugins/styleguide?" was a bare specifier, but was not remapped to anything`.
This change renders `layouts/plugin_js` ahead of those scripts, which matches the order in `application.html.erb`, so plugin JS tests run in Firefox again.
1 个赞