Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"baseUrl" is not allowed to be empty #19

Closed
stepinus opened this issue Oct 9, 2018 · 6 comments
Closed

"baseUrl" is not allowed to be empty #19

stepinus opened this issue Oct 9, 2018 · 6 comments

Comments

@stepinus
Copy link

stepinus commented Oct 9, 2018

this plugin set baseUrl in vue.config.js to '', but on build vue-cli throws error :
"Invalid options in vue.config.js: child "baseUrl" fails because ["baseUrl" is not allowed to be empty]"

@m0dch3n
Copy link
Owner

m0dch3n commented Oct 9, 2018

Which vue cli version do you use? How can I reproduce the error?

@m0dch3n
Copy link
Owner

m0dch3n commented Oct 9, 2018

vuejs/vue-cli#900

Maybe it's related to something like this, so I think, this got already fixed in a more recent vue cli... I never experienced this issue.

@stepinus
Copy link
Author

stepinus commented Oct 9, 2018

Which vue cli version do you use? How can I reproduce the error?

vuejs/vue-cli#900

Maybe it's related to something like this, so I think, this got already fixed in a more recent vue cli... I never experienced this issue.

thank you, my vue-cli version is 3.0.5 , but i will try to reinstall it and check

@m0dch3n
Copy link
Owner

m0dch3n commented Oct 9, 2018

The docs are saying:

The value can also be set to an empty string ('') or a relative path (./) so that all assets are linked using relative paths. This allows the built bundle to be deployed under any public path, or used in a file system based environment like a Cordova hybrid app.

https://cli.vuejs.org/config/#baseurl

@m0dch3n m0dch3n closed this as completed Oct 9, 2018
@m0dch3n
Copy link
Owner

m0dch3n commented Oct 9, 2018

I had 3.0.1, tried now with 3.0.5, still not experiencing the problem...

@LaraFranklin
Copy link

LaraFranklin commented Jan 30, 2020

@vue/cli-service": "^4.1.2" or "^3.3.0" => remplace baseUrl by publicPath = ('')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants