Error: Cannot find module './App.vue' #Vue.js #TypeScript #Electron

I’m getting this error:
yarn run v1.22.4
warning …/package.json: No license field
$ npm run build && electron ./dist/main.js
npm WARN lifecycle The node binary used for scripts is /tmp/yarn–
1596202162650-0.8727821458630636/node but npm is using /home/marco/.nvm/versions
/node/v14.5.0/bin/node itself. Use the --scripts-prepend-node-path option to include the path for the
node binary npm was executed with.

> electron-quick-start-typescript@1.0.0 build /home/marco/webMatters/electronMatters/GGC-new
> tsc

App threw an error during load
Error: Cannot find module './App.vue'
Require stack:
- /home/marco/webMatters/electronMatters/GGC-new/dist/main.js
- /home/marco/webMatters/electronMatters/GGC-new/node_modules/electron/dist/resources 
/default_app.asar/main.js
- 
    at Module._resolveFilename (internal/modules/cjs/loader.js:797:17)
    at Function.o._resolveFilename (electron/js2c/browser_init.js:281:679)
    at Module._load (internal/modules/cjs/loader.js:690:27)
    at Function.Module._load (electron/js2c/asar.js:769:28)
    at Module.require (internal/modules/cjs/loader.js:852:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/home/marco/webMatters/electronMatters/GGC-new/dist/main.js:4:17)
    at Module._compile (internal/modules/cjs/loader.js:967:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1004:10)
    at Module.load (internal/modules/cjs/loader.js:815:32)
A JavaScript error occurred in the main process
Uncaught Exception:
Error: Cannot find module './App.vue'
Require stack:
- /home/marco/webMatters/electronMatters/GGC-new/dist/main.js
- /home/marco/webMatters/electronMatters/GGC-new/node_modules/electron/dist/resources
/default_app.asar/main.js
- 
    at Module._resolveFilename (internal/modules/cjs/loader.js:797:17)
    at Function.o._resolveFilename (electron/js2c/browser_init.js:281:679)
   at Module._load (internal/modules/cjs/loader.js:690:27)
    at Function.Module._load (electron/js2c/asar.js:769:28)
    at Module.require (internal/modules/cjs/loader.js:852:19)
at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/home/marco/webMatters/electronMatters/GGC-new/dist/main.js:4:17)
    at Module._compile (internal/modules/cjs/loader.js:967:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1004:10)
    at Module.load (internal/modules/cjs/loader.js:815:32)
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to open nouveau (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}  
/dri:/usr/lib/dri)
failed to load driver: nouveau
MESA-LOADER: failed to open kms_swrast (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}
/dri:/usr/lib/dri)
failed to load driver: kms_swrast
MESA-LOADER: failed to open swrast (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}
/dri:/usr/lib/dri)
failed to load swrast driver

/src folder has these files:

(base) marco@pc01:~/webMatters/electronMatters/GGC-new/src$ ls -lah
total 40K
drwxr-xr-x 4 marco marco 4,0K lug 31 15:57 .
drwxr-xr-x 8 marco marco 4,0K lug 31 15:46 ..
-rw-r--r-- 1 marco marco  579 lug 31 15:12 App.vue
-rw-r--r-- 1 marco marco 2,9K lug 31 15:17 background.ts
-rw-r--r-- 1 marco marco  188 lug 31 15:29 main.ts
-rw-r--r-- 1 marco marco  477 lug 27 13:01 preload.ts
-rw-r--r-- 1 marco marco  306 lug 27 13:01 renderer.ts
drwxrwxr-x 2 marco marco 4,0K lug 31 14:15 router
drwxrwxr-x 2 marco marco 4,0K lug 31 13:18 types

This is App.vue :

<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script lang="ts">
import { Component, Vue} from 'vue-property-decorator';

@Component
export default class App implements Vue {}
//export default class App extends Vue {}
// https://github.com/electron/electron/issues/21612#issuecomment-568901193
</script>

<style lang="scss">
  @import "./assets/font/iconfont.css";
  @import "./assets/scss/base.scss";
</style>

And this is main.ts :

import Vue from 'vue'
import App from './App.vue'
import router from './router/index'

Vue.config.productionTip = false

new Vue({
    router,
    render: (h) => h(App),
}).$mount('#app')



(base) marco@pc01:~/webMatters/electronMatters/GGC-new$ vue info

Environment Info:

  System:
    OS: Linux 5.4 Ubuntu 18.04.4 LTS (Bionic Beaver)
    CPU: (8) x64 Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz
  Binaries:
    Node: 14.5.0 - ~/.nvm/versions/node/v14.5.0/bin/node
    Yarn: 1.22.4 - /usr/bin/yarn
    npm: 6.14.5 - ~/.nvm/versions/node/v14.5.0/bin/npm
  Browsers:
    Chrome: 84.0.4147.105
    Firefox: 79.0
  npmPackages:
    @vue/cli-plugin-e2e-cypress: ^4.4.6 => 4.4.6 
    @vue/cli-plugin-unit-mocha: ^4.4.6 => 4.4.6 
    @vue/cli-shared-utils: ^4.4.6 => 4.4.6 
    babel-helper-vue-jsx-merge-props:  2.0.3 
    typescript: ^3.9.5 => 3.9.7 
    vue: ^2.6.11 => 2.6.11 
    vue-class-component: ^7.2.5 => 7.2.5 
    vue-cli-plugin-electron-builder: ~2.0.0-rc.4 => 2.0.0-rc.4 
    vue-github-buttons:  3.1.0 
    vue-i18n: ^8.19.0 => 8.20.0 
    vue-material: ^1.0.0-beta-14 => 1.0.0-beta-14 
    vue-property-decorator: ^9.0.0 => 9.0.0 
    vue-qrcode-reader: ^2.3.10 => 2.3.11 
    vue-router: ^3.3.4 => 3.3.4 
    vue-template-compiler: ^2.6.11 => 2.6.11 
    vue-toc:  0.0.1 
    vuex: ^3.5.1 => 3.5.1 
    vuex-class: ^0.3.2 => 0.3.2 
  npmGlobalPackages:
    @vue/cli: 4.4.6

How to solve the problem?

Looking forward to your kind help.
Marco