Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

fix: Non-relative paths are not allowed when 'baseUrl' is not set #108

Closed
wants to merge 1 commit into from

Conversation

Quineone
Copy link

No description provided.

@jake-danton
Copy link

Testing this locally, it didn't work. But the following worked for me:

  function relativeWithDot(from: string, to: string) {
     return relative(from, to).replace(/(^.[^/])/, "./$1");
   }

See #109 for other changes needed get it working with latest Nuxt

@Quineone Quineone closed this Sep 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants