This repository has been archived by the owner on Dec 26, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 391
window is not defined with SSR on next branch #92
Comments
I would recommend using this library instead vue-touch-events @billwing |
@piyushchauhan2011 OK, thanks. I have a try later. |
@PengXing I do like that but not work, and same problem: hammer-ssr.js:
|
I made a small PR concernig this issue. Until it's merged, you can use it via |
@billwing you need add // webpack.server.conf.js
externals: nodeExternals({
whitelist: [/\.(css|vue)$/, /hammerjs/]
}) |
The @Kaptard 's solution is the only workaround working for me |
@Kaptard thanks a lot |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I do it like Server-Side Rendering (SSR), but not work:
The text was updated successfully, but these errors were encountered: