How to use it with Nuxt 2
sjorobekov opened this issue · 2 comments
sjorobekov commented
Hello,
I'm trying to add pwa-install into my nuxt 2 project.
// plugins/pwa-install.js
import Vue from 'vue'
import { PWAInstallElement } from '@khmyznikov/pwa-install';
Vue.component('PwaInstall', PWAInstallElement)
But getting following error (cutted it down):
ERROR in ./node_modules/@khmyznikov/pwa-install/dist/es/pwa-install.es.js 1:2583
Module parse failed: Unexpected token (1:2583)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
> import*as e from"lit";import*as t from"lit/decorators.js";import*as a from"lit/directives/class-map.js";var l={d:(e,t)
Thank you
khmyznikov commented
Probably this: https://v2.vuejs.org/v2/api/#ignoredElements
khmyznikov commented
@sjorobekov any luck?