This repository was archived by the owner on Jun 9, 2022. It is now read-only.

Description
I am trying to add this library to nuxt js.
What I have now is a file under plugins/fastclick.js
import FastClick from 'fastclick'
export default ({ document }) => {
FastClick.attach(document.body)
}
which i use to import that one in my nuxt config using
plugins: [
{ src: '~/plugins/fastclick.js' }
]
but the result is I am getting ReferenceError: navigator is not defined error
I tried to provide the file using webpack.ProvidePlugin
build: {
plugins: [new webpack.ProvidePlugin({ FastClick: 'fastclick' })]
}