You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just ran into an issue where a module tried to do
newURL("./some/path.js",import.meta.url);
Since import.meta.url was an object url, it threw an error:
TypeError: Invalid URL: '../some/path.js' with base 'file:///Users/Jesper/path/to/other/file.js'
const theUrl = new URL("../some/path.js", import.meta.url);
^
at getSerialization (ext:deno_url/00_url.js:89:11)
at new URL (ext:deno_url/00_url.js:380:27)
at blob:null/7af13edf-0cac-4103-b56a-5129210edc73:100:16
This got me confused for a good while because the 'with base' reported a valid base.
Also it seems like the object url in the stack trace wasn't replaced for some reason.
The text was updated successfully, but these errors were encountered:
I just ran into an issue where a module tried to do
Since
import.meta.url
was an object url, it threw an error:This got me confused for a good while because the 'with base' reported a valid base.
Also it seems like the object url in the stack trace wasn't replaced for some reason.
The text was updated successfully, but these errors were encountered: