-
Notifications
You must be signed in to change notification settings - Fork 373
"You are using the runtime-only" Warning on version 2.2.0 #83
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
Comments
That error is unrelated to this component (you will see the same warning even with v2.1.3 if you don't change anything else). Here. |
@Syn-zeta I am aware of this vue behavior and that's not the case. |
I am actually pretty sure it's from commit 6168c31. |
My bad for the wrong assumption. Moving out the spinners to its own component in a |
My mind is the spinners just need |
The warning is happening on usage, not on registration. I am registering infinite-loader just once, globally, in my main.js: import VueVirtualScroller from 'vue-virtual-scroller/dist/vue-virtual-scroller';
Vue.use(VueVirtualScroller); And then, each time I am using a component, I am getting the warning. |
I have the same problem also in the basic example |
@asafyish Hey. I have the same problem. Have you found a solution? |
@Jussiadev @asafyish you can use |
@PeachScript I was mistaken. I am registering vue-infinite-loading in a local component, not global and still getting the warning. @Jussiadev No solution so far. The right solution is probably a fix in the library itself. |
@PeachScript why this happens even I use your base example |
@asafyish @Jussiadev perhaps I did not make it clear. This component use the local registration component as the spinners, and the local registration component was not be pre-compiled when this component be released, but your project use the So there has a temporary solution to solve it, just change your ...
resolve: {
alias: {
'vue$': 'vue/dist/vue.esm.js'
}
}
... |
@PeachScript Yeah that's a great temporary solution, but long-term, I think it's better not to mandate including the compiler in addition to the runtime. |
@asafyish of course! I will replace all spinners templates with the compiled templates in the next version. |
Hi @asafyish @Jussiadev , the new version |
@PeachScript Thank you so much. |
@Jussiadev it does not matter, they are same problem. You can create an empty element to hide the spinner through |
Can verify that it's working correctly in 2.2.1. |
@PeachScript Does not help
|
Do you mean ? <infinite-loading @infinite="infiniteHandler" spinner="circle">
<span slot="spinner"></span>
</infinite-loading> notice the slot name. |
@asafyish Thank you. Now it works |
Version
2.2.0
Vue.js version
2.4.4
What is exptected?
To not get this warning, as it was in version 2.1.3
What is actually happening?
I am getting a warning:
[Vue warn]: You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build.
found in
--->
How to repreduce this problem?
Create a version using:
with runtime-only configuration.
The text was updated successfully, but these errors were encountered: