We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24afb0b commit ac5dab9Copy full SHA for ac5dab9
doc/api/errors.md
@@ -2970,11 +2970,11 @@ importing or calling `import.meta.resolve()` with either:
2970
is not `file`.
2971
* a [relative URL][] from a module whose URL scheme is not a [special scheme][].
2972
2973
-```js
+```mjs
2974
try {
2975
// Trying to import the package 'bare-specifier' from a `data:` URL module:
2976
- await import("data:text/javascript,import%22bare-specifier%22");
2977
-} catch(e) {
+ await import('data:text/javascript,import "bare-specifier"');
+} catch (e) {
2978
console.log(e.code); // ERR_UNSUPPORTED_RESOLVE_REQUEST
2979
}
2980
```
0 commit comments