Skip to content
This repository was archived by the owner on Dec 26, 2018. It is now read-only.

hammer-ssr.js throw error! #129

Closed
HarryPoint opened this issue Nov 23, 2018 · 0 comments
Closed

hammer-ssr.js throw error! #129

HarryPoint opened this issue Nov 23, 2018 · 0 comments

Comments

@HarryPoint
Copy link

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() {}

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

No branches or pull requests

1 participant