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

Plugins not working in nuxt: template or render function not defined #3

Open
nereuseng opened this issue Dec 26, 2018 · 0 comments
Open

Comments

@nereuseng
Copy link

Hi, Thank you for your contributing this awesome plugins! I'm really enjoy from the extensions you created. I was trying to use it in Nuxt.js, by install the nuxt.config.js:

  plugins: [
    {
      src: '~plugins/vue-doubleclick.js',
      ssr: false
    }
  ],

and in folder plugins:

// vue-doubleclick.js
import Vue from "vue";
import DoubleClick from "vue-doubleclick";
let mappings = {
  rectangle: [
    { window: [0, 0], sizes: [[970, 90], [1200, 110], [728, 90], [970, 250]] }
  ]
};

Vue.use(DoubleClick, {
  id: "824093244.1534743783",
  mappings
});

but still get a error:

-- [Vue warn]: Failed to mount component: template or render function not defined.

Could you please help me to determine which error is? I repeat my error on codesandbox:

https://codesandbox.io/s/676py75yk

Thank you again for this plugins! 😄

kristabs pushed a commit to kristabs/vue-dfp that referenced this issue Apr 12, 2019
Signed-off-by: Kristaps Kazarevskis <kristaps.kazarevskis@gmail.com>
fsutawanir added a commit to fsutawanir/vue-dfp that referenced this issue Sep 2, 2019
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