vuejs / vue-touch

Hammer.js wrapper for Vue.js
MIT License
2.72k stars 391 forks source link

hammer-ssr.js throw error! #129

Closed HarryPoint closed 5 years ago

HarryPoint commented 5 years ago

Module parse failed: Unexpected token (1:33) You may need an appropriate loader to handle this file type.

module.exports = function Hammer { | console.log(`[vue-touch] Your should never see this message. | When you do, your code tried to call 'new Hammer(), but your app has included a stub for HammerJS, provided by vue-touch, instead of the actual HammerJS library. @ ./node_modules/vue-touch/dist/vue-touch.js 2:73-92

module.exports = function Hammer {} should be module.exports = function Hammer() {}