vuetifyjs / webpack-ssr

Vuetify Webpack SSR Template
https://vuetifyjs.com/overview
62 stars 28 forks source link

Syntax Error on compilation #13

Closed acidjazz closed 7 years ago

acidjazz commented 7 years ago

SyntaxError: Unexpected token punc «)», expected punc «(» [server-bundle.js:9627,13]

 ▲ ~/what/dood npm run build

> dood@ build /Users/k/what/dood
> rimraf dist && npm run build:client && npm run build:server

> dood@ build:client /Users/k/what/dood
> cross-env NODE_ENV=production webpack --config build/webpack.client.config.js --progress --hide-modules

Hash: 492e25756d58579e4908
Version: webpack 2.2.1
Time: 6923ms
                              Asset       Size  Chunks             Chunk Names
        app.9d34926e35a0ee3fde6e.js    92.6 kB    0, 2  [emitted]  app
     vendor.59d6c41f597a2a2c3c11.js    94.5 kB    1, 2  [emitted]  vendor
   manifest.59353fb697ac3660d2ff.js    1.44 kB       2  [emitted]  manifest
    styles.492e25756d58579e4908.css     141 kB    0, 2  [emitted]  app
styles.492e25756d58579e4908.css.map  108 bytes    0, 2  [emitted]  app
                         index.html    1.39 kB          [emitted]

> dood@ build:server /Users/k/what/dood
> cross-env NODE_ENV=production webpack --config build/webpack.server.config.js --progress --hide-modules

Hash: 33308cff0b3c3d7f2219
Version: webpack 2.2.1
Time: 1698ms
           Asset    Size  Chunks             Chunk Names
server-bundle.js  460 kB       0  [emitted]  main

ERROR in server-bundle.js from UglifyJs
SyntaxError: Unexpected token punc «)», expected punc «(» [server-bundle.js:9627,13]

npm ERR! Darwin 16.5.0
npm ERR! argv "/usr/local/Cellar/node/7.1.0/bin/node" "/usr/local/bin/npm" "run" "build:server"
npm ERR! node v7.1.0
npm ERR! npm  v3.10.9
npm ERR! code ELIFECYCLE
npm ERR! dood@ build:server: `cross-env NODE_ENV=production webpack --config build/webpack.server.config.js --progress --hide-modules`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the dood@ build:server script 'cross-env NODE_ENV=production webpack --config build/webpack.server.config.js --progress --hide-modules'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the dood package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     cross-env NODE_ENV=production webpack --config build/webpack.server.config.js --progress --hide-modules
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs dood
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls dood
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/k/what/dood/npm-debug.log

npm ERR! Darwin 16.5.0
npm ERR! argv "/usr/local/Cellar/node/7.1.0/bin/node" "/usr/local/bin/npm" "run" "build"
npm ERR! node v7.1.0
npm ERR! npm  v3.10.9
npm ERR! code ELIFECYCLE
npm ERR! dood@ build: `rimraf dist && npm run build:client && npm run build:server`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the dood@ build script 'rimraf dist && npm run build:client && npm run build:server'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the dood package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     rimraf dist && npm run build:client && npm run build:server
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs dood
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls dood
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/k/what/dood/npm-debug.log
johnleider commented 7 years ago

Is this with the stock install or have you modified it at all? The error is because some javascript is not being transpiled.