Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

u is not a constructor - usage in nuxt #10

Open
MartinMuzatko opened this issue Jun 3, 2019 · 1 comment
Open

u is not a constructor - usage in nuxt #10

MartinMuzatko opened this issue Jun 3, 2019 · 1 comment

Comments

@MartinMuzatko
Copy link

MartinMuzatko commented Jun 3, 2019

Hello! I am trying to use vue-mqtt from within nuxt.

image

I tried to create a reproduction sandbox. But after adding the plugin, sandbox freezes:
https://codesandbox.io/s/codesandboxnuxt-h6ccq?fontsize=14

This is my plugin usage code:

import Vue from "vue";
import mqtt from "vue-mqtt";

Vue.use(mqtt, "ws://localhost:9001", {});

Is there a way to debug this?

Thanks in advance!

@loyalove
Copy link

loyalove commented Nov 27, 2019

use nuxt with spa mode
use plugin with ssr false

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

No branches or pull requests

2 participants