vue-bulma/tooltip

Error in production

janva255 opened this issue · 5 comments

Getting this error in production

js/app.js from UglifyJs
Unexpected token: operator (>) [./node_modules/vue-bulma-tooltip/src/index.js:14,0][js/app.js:103321,24]

Using webpack with laravel mix

I can't build in production, can you help me?

.babelrc

{
    "presets": [
        ["stage-2"],
        ["es2015",  {"modules": false}]
    ],
    "plugins": [
        "transform-runtime",
        "transform-object-rest-spread"
    ]
}

babel packages

    "babel-plugin-transform-object-rest-spread": "^6.26.0",
    "babel-plugin-transform-runtime": "^6.23.0",
    "babel-preset-env": "^1.6.0",
    "babel-preset-es2015": "^6.24.1",
    "babel-preset-stage-2": "^6.24.1",
    "babel-preset-latest": "^6.22.0",
graux commented

+1

749 commented

+1 Getting the same issue with laravel mix, it works fine when compiling with vue-cli built project

749 commented

Try upgrading your laravel-mix to version 1.6.0. for me that fixed the errors
If it still throws errors, go through the troubleshooting:
https://github.com/JeffreyWay/laravel-mix/blob/master/docs/troubleshooting.md

@749 Hey, thanks for the help but i moved to vue-tooltip https://github.com/Akryum/v-tooltip