question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The baseUrl option cannot be empty

See original GitHub issue

Version

3.0.0-alpha.13

Steps to reproduce

Make a vue.config.js with

module.exports = {
  baseUrl: ''
}

execute npm run build.

What is expected?

An index.html file is created with relative link, f.e. href=js/… etc.

What is actually happening?

I get an error that baseUrl cannot be empty.


A simple workaround is

module.exports = {
  configureWebpack: {
    output: {
      publicPath: '',
    },
  },
};

This is actually the default value for publicPath, so it is weird that baseUrl does not allow this value.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

11reactions
yyx990803commented, Jun 5, 2018

This will be possible in the next release.

4reactions
stoftecommented, Jun 26, 2018

Sorry to be a troll, but are the docs just made up then? I dont think I ever heard of premature documentation. https://cli.vuejs.org/config/#baseurl

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I set the baseUrl for Angular HttpClient?
Use the new HttpClient Interceptor. Create a proper injectable that implements HttpInterceptor : import {Injectable} from '@angular/core'; ...
Read more >
Can't add tracker - no base URL to select : r/prowlarr - Reddit
Hi, I am trying to add Dutch tracker Film Paleis to prowlarr. However there is a dropdown menu for the "base URL" the...
Read more >
[ambari-2.7.3] Ambari writes Empty baseurl values
Problem Statement : when using a local repository, installation fails due to empty baseurls being written to the Ambari repository (even though local ......
Read more >
Configuration Reference | Vue CLI
If you cannot make use of the index HTML generated by Vue CLI, you can disable filename hashing by setting this option to...
Read more >
Configuration - Cypress Documentation
Any other configuration values are readonly and cannot be changed at run time. animationDistanceThreshold; baseUrl; blockHosts; defaultCommandTimeout; env note: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found