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 building project from vue-cli webpack #12

Closed
Garmichael opened this issue Oct 31, 2016 · 3 comments
Closed

Error building project from vue-cli webpack #12

Garmichael opened this issue Oct 31, 2016 · 3 comments
Labels

Comments

@Garmichael
Copy link

Garmichael commented Oct 31, 2016

Hi there,

I used vue-cli to create the standard webpack scaffolding.

I'm using vue2 and vue-socket.io.

Running on the dev server, everything works perfectly. But when I build and run the built server, I get:

build.js:2Uncaught ReferenceError: f is not defined(…)

The problem isn't there when I don't include vue-socket.io (but then I can't use this awesome library)

@drozdzynski
Copy link

Hello,

I have the same problem, on dev build works, but on production build not work.
Laravel elixir + webpack + vuejs2

My console log: app.js:54 Uncaught ReferenceError: c is not define

@tomvdv
Copy link

tomvdv commented Nov 15, 2016

Update your UglifyJsPlugin configuration in /build/webpack.prod.conf.js to avoid mangling names, like so:

 new webpack.optimize.UglifyJsPlugin({
   compress: {
     warnings: false
   },
   mangle: false
 }),

@Neewd
Copy link

Neewd commented Dec 13, 2016

Don't work for me :(
Even in dev or prod.

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

No branches or pull requests

5 participants