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

How to use this on vue 2 with vuetify? #775

Open
Moanrisy opened this issue Jul 30, 2022 · 0 comments
Open

How to use this on vue 2 with vuetify? #775

Moanrisy opened this issue Jul 30, 2022 · 0 comments

Comments

@Moanrisy
Copy link

This is my main.js

import Vue from "vue";
import VueMeta from "vue-meta";
import App from "./App.vue";
import vuetify from "./plugins/vuetify";

Vue.config.productionTip = false;

Vue.use(VueMeta, {
  // optional pluginOptions
  refreshOnceOnNavigation: true,
});

new Vue({
  vuetify,
  render: (h) => h(App),
}).$mount("#app");

and this is component where I'm gonna use pannellum.js

<script>
export default {
  name: "View360Mode",
  metaInfo: () => ({
    script: [
      {
        src: "https://cdn.jsdelivr.net/npm/[email protected]/build/pannellum.js",
        async: true,
        defer: true,
      },
    ],
  }),
};

pannellum.viewer("panorama", 

^ it keep saying pannellum is not defined

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

1 participant