michalzaq12 / electron-nuxt

⚡ An Electron & Nuxt.js / Vue.js quick start boilerplate with vue-cli scaffolding, electron-builder, unit/e2e testing, vue-devtools
https://michalzaq12.github.io/electron-nuxt
MIT License
719 stars 78 forks source link

Nuxt plugins in build BUG #763

Open lightmyfire17 opened 3 years ago

lightmyfire17 commented 3 years ago

Hey there. Was using your nice template for a few years, but now faced the following error with the new template: image

This error happens only in build version, in dev everything works fine. As I've tested it happens with ANY vue plugin added, not only with that one on the screenshot.

// nuxt.config.js

plugins: [
    "~plugins/vue-notification"
  ],
// vue-notification.js

import Vue from "vue";
import Notifications from "vue-notification";
Vue.use(Notifications);

Just default plugin import, nothing more

MentalGear commented 2 years ago

Same issue here. Did you find a solution @lightmyfire17 ?

Screenshot 2021-12-04 at 13 02 04
MentalGear commented 2 years ago

Solved it (in dev):

Solution:

I added 'tabulator-tables' package manually using yarn add tabulator-tables

as the peer dependency didn't seem to get met.