I can run the application fine in dev mode. But when i package the app and run it, I get a type error. TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type number
Here is my nuxt.config.js
file
/**
* By default, Nuxt.js is configured to cover most use cases.
* This default configuration can be overwritten in this file
* @link {https://nuxtjs.org/guide/configuration/}
*/
const colors = require('vuetify/es5/util/colors').default;
module.exports = {
mode: 'spa', // or 'universal'
head: {
title: 'Furcord',
},
loading: false,
plugins: [],
buildModules: ['@nuxt/typescript-build', '@nuxtjs/vuetify'],
modules: ['@nuxtjs/axios', '@nuxtjs/firebase', '@nuxtjs/apollo', 'nuxt-i18n'],
vuetify: {
theme: {
dark: true,
themes: {
dark: {
primary: colors.blue.darken2,
accent: colors.grey.darken3,
secondary: colors.amber.darken3,
info: colors.teal.lighten1,
warning: colors.amber.base,
error: colors.deepOrange.accent4,
success: colors.green.accent3,
},
},
},
},
axios: {},
firebase: {
config: {
production: {},
development: {},
},
services: {
auth: {
persistance: 'local',
},
firestore: true,
functions: false,
storage: true,
realtimeDb: false,
messaging: false,
performance: true,
analytics: true,
remoteConfig: false,
},
},
apollo: {
clientConfigs: {
default: {
httpEndpoint: 'http://localhost:4000',
browserHttpEndpoint: '/graphql',
httpLinkOptions: {
credentials: 'same-origin',
},
},
},
},
i18n: {
locales: [
{ code: 'en', file: 'en.js', name: 'English' },
],
defaultLocale: 'en',
strategy: 'no_prefix',
lazy: true,
langDir: '../resources/locales/',
detectBrowserLanguage: false,
},
};
and my builder.config.js
file
const ICONS_DIR = 'build/icons/';
const windowsOS = {
win: {
icon: ICONS_DIR + 'win-icon.ico',
publisherName: 'Furcord',
target: 'nsis',
},
nsis: {
differentialPackage: true,
},
};
module.exports = {
asar: true,
productName: 'Furcord',
appId: 'com.furcordapp.www',
copyright: 'Copyright © 2020 Furcord',
directories: {
output: 'build',
},
files: [
'package.json',
{
from: 'dist/main/',
to: 'dist/main/',
},
{
from: 'dist/renderer',
to: 'dist/renderer/',
},
{
from: 'src/resources/',
to: 'dist/resources/',
},
],
...windowsOS,
};
And I only have 2 vue files in my project at the moment. One in src/renderer/layouts/default.vue
and src/rederer/pages/index.vue
default.vue
<template>
<v-app dark>
<v-content>
<v-container>
<nuxt />
</v-container>
</v-content>
</v-app>
</template>
<script>
export default {};
</script>
index.vue
<template>
<h1>{{ this.$i18n.t("hello") }}</h1>
</template>
<script lang="ts">
import Vue from 'vue';
export default Vue.extend({
name: 'Index',
});
</script>
<style></style>
I have no clue what is causing the error. Can someone help? Thanks