Skip to content

HAMUR_W1217: A new URL(…, import.meta.url) is left as written

A new URL(…, import.meta.url) is left as written. Warning HAMUR_W1217 belongs to hamur, scan, build and dev (1001 – 1999).

Message

text
HAMUR_W1217 new URL(<first>, <BASE>): <message>

Cause

A new URL(path, import.meta.url) call that the build cannot follow is left as written. The message gives the reason.

Fix

Write the first argument as a string literal, or accept that the URL is read at run time.