FranckFreiburger / vue-resize-sensor

detect container resizing
MIT License
76 stars 12 forks source link

Vue fail to mount render function #4

Closed julientechdev closed 6 years ago

julientechdev commented 7 years ago

Using vue-pdf on a webpack 3 project, the render function on resize sensor fails to mount with vue (runtime only).

It seems that using es imports instead of requires on both vue-pdf & vue-resize-sensor fix the problem.

[Vue warn]: Failed to mount component: template or render function not defined.

found in

---> <ResizeSensor>
       <Vuepdf> at node_modules/vue-pdf/src/pdf.vue
julientechdev commented 7 years ago

Actually it doesn't fix the problem. I also tried running the full build with the compiler, same problem. This is weird because a render function is defined on vue-resize-sensor component...

FranckFreiburger commented 7 years ago

I will create a vue-resize-sensor@2 version that will use only esm. (btw, I use vue-resize-sensor@1.x with webpack@3.6.x without problem)

jdemoort commented 7 years ago

Any expectation on when the vue-resize-sensor@2 version will become available? Tx

FranckFreiburger commented 7 years ago

very soon...

jdemoort commented 7 years ago

Much appreciated!

FranckFreiburger commented 7 years ago

please check v2.0.0 (note that vue-pdf has not been updated accordingly)

FranckFreiburger commented 6 years ago

please reopen if the problem persists