tooltip icon indicating copy to clipboard operation
tooltip copied to clipboard

Cannot use <slot> as component root element

Open chimit opened this issue 8 years ago • 4 comments

Hi!

I get an ESLint error in this component:

ERROR in ./~/vue-loader/lib/template-compiler.js?id=data-v-6a0357d7!./~/vue-loader/lib/selector.js?type=template&index=0!./~/vue-bulma-tooltip/src/Tooltip.vue
template syntax error Cannot use <slot> as component root element because it may contain multiple nodes:
<slot><slot>

I use vue-bulma-tooltip from the npm. How to solve this problem?

chimit avatar Nov 25 '16 08:11 chimit

+1

oleynikd avatar Dec 07 '16 22:12 oleynikd

Try

"vue-bulma-tooltip": "github:vue-bulma/tooltip"

instead of

"vue-bulma-tooltip": "^1.0.0"

in your package.json

jinseokoh avatar Jan 18 '17 01:01 jinseokoh

error in ./~/vue-bulma-tooltip/src/style.scss

Module parse failed: C:\xampp\htdocs\lifesatstream\node_modules\vue-bulma-tooltip\src\style.scss Unexpected character '@' (1:0) You may need an appropriate loader to handle this file type. | @import '~bulma/sass/utilities/variables';

"version": "1.0.2"

brecky avatar Feb 16 '17 23:02 brecky

@brecky you need to install and config css-loader

luventa avatar Feb 17 '17 03:02 luventa