manut
(Manuel Tancoigne)
29.Сентябрь.2026 09:47:20
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 лайк