{"action":"created","issue":{"url":"https://api.github.com/repos/KazanExpress/vue-simple-suggest/issues/88","repository_url":"https://api.github.com/repos/KazanExpress/vue-simple-suggest","labels_url":"https://api.github.com/repos/KazanExpress/vue-simple-suggest/issues/88/labels{/name}","comments_url":"https://api.github.com/repos/KazanExpress/vue-simple-suggest/issues/88/comments","events_url":"https://api.github.com/repos/KazanExpress/vue-simple-suggest/issues/88/events","html_url":"https://github.com/KazanExpress/vue-simple-suggest/issues/88","id":364273414,"node_id":"MDU6SXNzdWUzNjQyNzM0MTQ=","number":88,"title":"UglifyJS error when building for `production`","user":{"login":"humblecoder","id":913539,"node_id":"MDQ6VXNlcjkxMzUzOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/913539?v=4","gravatar_id":"","url":"https://api.github.com/users/humblecoder","html_url":"https://github.com/humblecoder","followers_url":"https://api.github.com/users/humblecoder/followers","following_url":"https://api.github.com/users/humblecoder/following{/other_user}","gists_url":"https://api.github.com/users/humblecoder/gists{/gist_id}","starred_url":"https://api.github.com/users/humblecoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/humblecoder/subscriptions","organizations_url":"https://api.github.com/users/humblecoder/orgs","repos_url":"https://api.github.com/users/humblecoder/repos","events_url":"https://api.github.com/users/humblecoder/events{/privacy}","received_events_url":"https://api.github.com/users/humblecoder/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-27T01:44:41Z","updated_at":"2018-09-27T04:39:07Z","closed_at":"2018-09-27T04:39:07Z","author_association":"NONE","body":"## **I'm submitting a ...**\r\n  - [x] bug report\r\n  - [ ] feature request\r\n  - [ ] support request\r\n\r\n\r\n## **What is the current behavior?**\r\nWith my basic `laravel-mix`-based `webpack.config` I use `uglify` to build the application for production.  All other non-uglify build methods work without a hitch.  However, now that I've added `vue-simple-suggest` to the application, when running `yarn run production` (which tries to uglify) I receive the following:\r\n\r\n```\r\n/js/main.js from UglifyJs\r\nInvalid assignment [./node_modules/vue-simple-suggest/dist/es6.js:15,0][/js/main.js:229346,39]\r\n```\r\n\r\n## **If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem**\r\n\r\n`yarn run production`\r\n\r\n\r\n## **What is the expected behavior?**\r\nBuild and uglify/minify without throwing an error.\r\n\r\n\r\n### How are you importing Vue-simple-suggest?\r\n\r\n- [ ] ESNext (original code, single-file .vue component, css included) (`import VueSimpleSuggest from 'vue-simple-suggest/lib'`)\r\n- [x] ES6 (`import VueSimpleSuggest from 'vue-simple-suggest'`)\r\n- [ ] ES7 and above (`import VueSimpleSuggest from 'vue-simple-suggest/dist/es7'`)\r\n- [ ] Bundled version (`import VueSimpleSuggest from 'vue-simple-suggest'`)\r\n- [ ] CommonJS (`const VueSimpleSuggest = require('vue-simple-suggest')`)\r\n- [ ] UMD Component (`<script type=\"text/javascript\" src=\"https://unpkg.com/vue-simple-suggest\"></script>`)\r\n\r\n\r\n\r\n## **What is the motivation / use case for changing the behavior?**\r\nI'd like to be able to minify without issue.  I've upgraded all relevant packages, to no avail.\r\n\r\n\r\n## **Please tell us about your environment:**\r\n  \r\n  - Vue.js Version: 3.0.0-beta.15\r\n  - Vue-simple-suggest version: 1.8.2\r\n  - Browser: [N/A]\r\n  - Language: [ES6/7]\r\n\r\n\r\n* **Other information** (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)\r\n"},"comment":{"url":"https://api.github.com/repos/KazanExpress/vue-simple-suggest/issues/comments/424956785","html_url":"https://github.com/KazanExpress/vue-simple-suggest/issues/88#issuecomment-424956785","issue_url":"https://api.github.com/repos/KazanExpress/vue-simple-suggest/issues/88","id":424956785,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDk1Njc4NQ==","user":{"login":"humblecoder","id":913539,"node_id":"MDQ6VXNlcjkxMzUzOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/913539?v=4","gravatar_id":"","url":"https://api.github.com/users/humblecoder","html_url":"https://github.com/humblecoder","followers_url":"https://api.github.com/users/humblecoder/followers","following_url":"https://api.github.com/users/humblecoder/following{/other_user}","gists_url":"https://api.github.com/users/humblecoder/gists{/gist_id}","starred_url":"https://api.github.com/users/humblecoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/humblecoder/subscriptions","organizations_url":"https://api.github.com/users/humblecoder/orgs","repos_url":"https://api.github.com/users/humblecoder/repos","events_url":"https://api.github.com/users/humblecoder/events{/privacy}","received_events_url":"https://api.github.com/users/humblecoder/received_events","type":"User","site_admin":false},"created_at":"2018-09-27T04:39:07Z","updated_at":"2018-09-27T04:39:07Z","author_association":"NONE","body":"Adjusting my config file to the \"node_module\" `laravel-mix` `webpack.config.js` file and updating ***to*** the following seems to have done the trick:\r\n```\r\n    \"uglify-js\": \"^3.4.9\",\r\n    \"uglifyjs-webpack-plugin\": \"^2.0.1\",\r\n    \"laravel-mix\": \"^2.1.0\",\r\n```\r\n\r\n🤷‍♂️ "}}
{"actor":{"display_login":"humblecoder"}}