-
Notifications
You must be signed in to change notification settings - Fork 40
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 Laravel #2
Comments
I'm not familiarized at all with Laravel, but I'll try my best to help you! Can you post the contents of Are there any errors if you disable the Also, are you using One more thing, where did you added |
I don't think Laravel is especially the issue as it's a PHP framework. Line 42.975 would be the compiled output line. gulpfile.js simple contains a reference to Elixir (Gulp framework in Laravel). I added the import in app.js, which is not the output but where I also load Vue.js I do not know how to disable uglify. I can see this is tricky for you to solve, I will also try to ask on a Laravel community if you believe the error relates to uglify |
I was following this https://alligator.io/vuejs/vue-workers/ now I tried again once more, I don't get any errors. This is so strange, but it works - that's important! Thanks for your help. |
Glad to hear that you got it working, @EmilMoe! |
@israelss I updated some scripts and are now compiling using webpack instead of gulp. This leads me to a more specific error pointing at line 4:
It is this line:
|
It is because UglifyJS doesn't support ES6: http://stackoverflow.com/questions/42633716/unexpected-token-punc-expected-punc-when-creating-chunk-from-uglifyjs I have 2 options now
I don't know if it will then complain about your script behind though. |
I tested and it works to transform it to ES5. I don't know if you want to accept this change, I created a pull request in case you want to. Functionality is kept intact. |
Thank you! Merged. 👍 👍 |
I'm using Laravel, but I get an error when I try to import VueWorker
I only added the
import VueWorker from 'vue-worker';
so that must be the error.The text was updated successfully, but these errors were encountered: