bublejs / buble

https://buble.surge.sh
MIT License
869 stars 67 forks source link

Using buble for vue.js #242

Closed simplenotezy closed 4 years ago

simplenotezy commented 4 years ago

I am trying to use buble for a vue.js project, but I am getting error:

/resources/assets/scripts/components/widgets/Pages.vue
  1:1  error  Parsing error: Unexpected token <

✖ 1 problem (1 error, 0 warnings)

 @ ./resources/assets/scripts/components/widgets/Pages.vue?vue&type=script&lang=js& 1:0-291 1:312-600
 @ ./resources/assets/scripts/components/widgets/Pages.vue

The unexpected token is:

<template>

I am not sure if buble is compatible with vue?

simplenotezy commented 4 years ago

It seems as though this is related to eslint; if I remove it, it works.

simplenotezy commented 4 years ago

This fixed it: https://eslint.vuejs.org/user-guide/#installation