Skip to content

Type 'string' is not assignable to type 'URL | undefined' #130

Answered by oscarotero
Isaac-Tait asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, @Isaac-Tait
Yes, the location option accepts only URL instances, so you have to change it as follows:

const site = lume({
  location: new URL("https://example.com/"),
});

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@oscarotero
Comment options

@Isaac-Tait
Comment options

Answer selected by Isaac-Tait
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants