question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Webpack build error using default vue-cli project build tools

See original GitHub issue

vue-cli project

Running the dev server works fine but when i run build:

cross-env NODE_ENV=production webpack --progress --hide-modules

i get this error:

ERROR in build.js from UglifyJs
Unexpected token punc «(», expected punc «:» [./~/vue-multiselect/src/mixins/multiselectMixin.js:19,0]

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
shentaocommented, Jun 2, 2016

@hparton Released!

1reaction
shentaocommented, Jun 1, 2016

@HParton Hey! I refactored the way one can import the component (now a bundled umd module), so none of those errors should happen.

I will try to release it as 0.2.0 today evening. Additionally, you can now import mixins like import { multiselectMixin } from 'vue-multiselect'.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Building generated project failed due to vue-cli-service ...
I created a new Vue project using the vue create command. I managed to build it properly on my MacOS platform, but on...
Read more >
Vue.js Build not working with npm run build - Stack Overflow
First create vue.config.js file in project root directory and define base url in it using below code module.exports = { baseUrl: process.env.
Read more >
Build Tools - Vue Community
Vue CLI is a sophisticated mix of tools for building modern Vue.js ... It offers a quick and interactive project scaffolding with custom...
Read more >
A comparison of Vue.js build tools - LogRocket Blog
In this article, I will be doing a comparison of scaffolding build tools available in the Vue.js ecosystem for efficiently building projects ......
Read more >
Working with Webpack | Vue CLI
For new projects, it is now recommended to use create-vue to scaffold ... The easiest way to tweak the webpack config is providing...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found