question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I saw the example for vue, but was unable to get this working for Nuxt 🤔

Is anybody willing to help with this? If so I think this would make a welcome addition to the examples page 😉

The closest I got was with a bit of code taken from https://github.com/simonhermann/mi-museum/blob/master/plugins/global.js

import Vue from 'vue'
import mediumZoom from 'medium-zoom'

const initAfterMount = () => {
  mediumZoom('#app img')
}

Vue.mixin({
  mounted: function() {
    // this will be called when any component is mounted!
    initAfterMount()
  },
})

However this isn’t functioning correctly …

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
francoischalifourcommented, Apr 3, 2018

I’m afraid it’s outside of the scope of medium-zoom but moment.js. I suggest you to read some of these responses.

0reactions
dimitriehcommented, Apr 3, 2018

@francoischalifour I do seem to get a lot of

(found in <Pages/blog/index.vue> at pages/blog/index.vue)
[Vue warn]: Failed to resolve filter: moment

When doing a generate command (although it succeeds) 🤔 any ideas?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hello World - Nuxt
In this example: pages/index.vue and pages/about.vue show how Nuxt server renders the page on first load or on hard refresh and renders the...
Read more >
nuxt examples - CodeSandbox
Learn how to use nuxt by viewing and forking example apps that make use of nuxt on CodeSandbox. NuxtThe official Nuxt Cloud Sandbox...
Read more >
Top 10+ Nuxt JS Example Project 2023 - ThemeSelection
Projects build using Nuxt JS · Vue Telescope Analyzer · Homefinder · Binbytes · Zenestate Client · Koala.
Read more >
An example project built using Nuxt - GitHub
nuxt -example. An example project built using Nuxt. Created as a demonstration for this blog article. A static version of the site (made...
Read more >
Nuxt - Vue.js Examples
Apply float labels to your Inputs, Selects and Textareas using your Nuxt3 Application. 05 December 2022. Some web3 shenanigans with Nuxt, Vite, UnoCSS, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found