-
Notifications
You must be signed in to change notification settings - Fork 77
Open
Labels
type:bugSomething isn't workingSomething isn't working
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
Use the following HTML page as an example:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Home</title>
<script type="importmap">
{
"imports": {
"dayjs": "https://cdn.skypack.dev/[email protected]"
}
}
</script>
</head>
<body>
<script type="module">
import dayjs from 'dayjs';
console.log(dayjs('2019-01-25').format('YYYY-MM-DDTHH:mm:ssZ[Z]'));
</script>
</body>
</html>Steps to reproduce
- Run an HTTP server and visit the mentioned HTML page.
- The browser reports the following error:
Uncaught TypeError: Failed to resolve module specifier "dayjs". Relative references must start with either "/", "./", or "../". - Disabling the extension for the particular domain does not help.
Browser
Chrome
Extension version
4.3.0
Anything else?
I think, the extension executes some scripts before the script[type=importmap] element is being processed.
Removing the extension helps.

Metadata
Metadata
Assignees
Labels
type:bugSomething isn't workingSomething isn't working