Skip to content
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

Error in production #14

Open
janva255 opened this issue Oct 21, 2017 · 5 comments
Open

Error in production #14

janva255 opened this issue Oct 21, 2017 · 5 comments

Comments

@janva255
Copy link

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?

@janva255
Copy link
Author

.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
Copy link

graux commented Nov 10, 2017

+1

@749
Copy link

749 commented Dec 5, 2017

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

@749
Copy link

749 commented Dec 5, 2017

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

@janva255
Copy link
Author

janva255 commented Dec 5, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants