[wp-trac] [WordPress Trac] #65260: Emoji detection script breaks the script modules import map in the Site Editor
WordPress Trac
noreply at wordpress.org
Sat May 23 08:36:55 UTC 2026
#65260: Emoji detection script breaks the script modules import map in the Site
Editor
--------------------------------------+------------------------------
Reporter: wildworks | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Abilities API | Version: 6.9
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+------------------------------
Comment (by wildworks):
I confirmed that the two scripts were swapped.
{{{
<html>
<head>
</head>
<body>
<script id="wp-importmap" type="importmap" crossorigin="anonymous">
{
"imports": {
"@wordpress/route": "http://localhost:8888/wp-
content/plugins/gutenberg/build/modules/route/index.js?ver=48a77bfa70722b4254e4",
"@wordpress/latex-to-mathml": "http://localhost:8888/wp-
content/plugins/gutenberg/build/modules/latex-to-
mathml/index.js?ver=e5fd3ae6d2c3b6e669da",
"@wordpress/vips/worker": "http://localhost:8888/wp-
content/plugins/gutenberg/build/modules/vips/worker.min.js?ver=de1b94d254f242c2192e",
"@wordpress/abilities": "http://localhost:8888/wp-
content/plugins/gutenberg/build/modules/abilities/index.js?ver=f3475bc77a30dcc5b38d"
}
}
</script>
<script type="module">
/**
* @output wp-includes/js/wp-emoji-loader.js
*/
</script>
</body>
</html>
}}}
> === 2. Math Block preview
>
> Insert a math block and enter some mathematical formula. The following
browser console error occurs, and the formula preview is not rendered.
>
> {{{
> Uncaught (in promise) TypeError: The specifier “@wordpress/latex-to-
mathml” was a bare specifier, but was not remapped to anything. Relative
module specifiers must start with “./”, “../” or “/”.
> }}}
I have confirmed that this issue has been resolved.
> === 1. Client-side Abilities API
>
> Access the Abilities API in the browser console.
>
> {{{
> const { registerAbilityCategory } = await import( '@wordpress/abilities'
);
> }}}
>
> The following error occurs.
>
> {{{
> Uncaught (in promise) TypeError: The specifier “@wordpress/abilities”
was a bare specifier, but was not remapped to anything. Relative module
specifiers must start with “./”, “../” or “/”.
> }}}
I confirmed that this issue still reproduces. However, it seems to occur
in browsers other than Firefox as well. This might be a separate issue.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/65260#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list