epicmaxco / epic-spinners

Easy to use css spinners collection with Vue.js integration
https://epic-spinners.epicmax.co
3.84k stars 357 forks source link

ERROR npm build Unexpected character '`' in node_modules/epic-spinners/... #39

Closed panuphan closed 4 years ago

panuphan commented 4 years ago

i can use npm run dev is ok , but i try to build is not work.

When npm build, i'm getting

ERROR in static/js/0.55e1a31d0eaa216bc664.js from UglifyJs
Unexpected character '`' [./node_modules/epic-spinners/src/services/utils.js:13,0][static/js/0.55e1a31d0eaa216bc664.js:1040,22]

  Build failed with errors.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! vuestic-admin@1.4.0 build: `node build/build.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the vuestic-admin@1.4.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Originally posted by @skapin in https://github.com/epicmaxco/epic-spinners/issues/17#issuecomment-566468332

panuphan commented 4 years ago

i found solve by added resolve in 'babel-loader' [ myproject/build/webpack.base.conf.js]

old: include: [resolve('src'), resolve('test')]

fix: include: [resolve('src'), resolve('test'), resolve('./node_modules/epic-spinners/src/services')]

now, i can build myproject complete