The follow code fails in extension context and DevTools.
It works fine on Chrome.
```js
import('/content/nav.css', {with: {type: 'css'}})
.then(console.log)
.catch(console.error);
// TypeError: error loading dynamically imported module: moz-extension://f5.../content/nav.css
```
For reference, the following works fine on Firefox.
```js
import('/manifest.json', {with: {type: 'json'}})
.then(console.log)
.catch(console.error);
```
Bug 2016369 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
The follow code fails in extension context and DevTools.
It works fine on Chrome.
```js
import('/content/nav.css', {with: {type: 'css'}})
.then(console.log)
.catch(console.error);
// TypeError: error loading dynamically imported module: moz-extension://f5.../content/nav.css
```
For reference, the following works fine on Firefox.
```js
import('/manifest.json', {with: {type: 'json'}})
.then(console.log)
.catch(console.error);
```
_Ubuntu 24.04
Nightly 149.0a1_