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

hammer-ssr.js throw error!  #129

@HarryPoint

Description

@HarryPoint

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions