-
Notifications
You must be signed in to change notification settings - Fork 25
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
serve error after installed this plugin #16
Comments
Sorry, I can't reproduce. Serving works fine - besides I tested the use-case before releasing version 1.1.0. Which version of the plugin are you using? |
I also have problem with serving project. With a bit different error. Actually, I'm using only vue project with babel and preprocessor. It's a blank project, without plugin it serves just fine. After adding plugin, it tells me that:
It's default plugin config:
plugin version: 1.1.0 I forgot to tell, that |
@SolarLiner I'm using version 1.1.0 too, I've tried many times and got same error. |
Okay, I can reproduce - I didn't see it printing the error as the console gets cleared after the dev build completes. The thing is that the plugin shouldn't even be loaded for development builds and the development server. I'll look into it! |
I've solved the Maybe I should just hardcode-disable it if running |
I have the same problem: development server does not work correctly (I see only blank page). |
I've solved the blank page issue in the hotfix branch - but that uncovered another bug that I need to fix whith Puppeteer enabled in |
It looks, like if you set |
Ah, that makes a lot of sense. @savander This is really useful information, thanks for sharing! |
Don't really know if that helps, but I solved the blank page problem by manually changing the webpack config in the vue.config.js {
chainWebpack: config => {
if (process.env.NODE_ENV !== 'production') {
config.plugin('html').tap(args => {
delete args[0].filename
return args
})
}
},
} |
That is the fix I applied in the feature branch. However it still breaks with I'll be releasing the fix with a notice that |
Hotfix release 1.1.1 - Workaround blank page on development builds by force disabling the plugin on dev builds (#16)
return Object.assign(options, { onlyProduction: true }); // Force disable on development build, workaround for #16 @SolarLiner This code will assign onlyProduction Always If I have test or beta env. it's not work |
Yes; this is a workaround for this very issue. |
Describe the bug
this is a blank project init by vue ui, include vue-router, after install this plugin, I got an error when serve it, I haven't change any code …
To Reproduce
Steps to reproduce the behavior:
Screenshots
The text was updated successfully, but these errors were encountered: