fix: AccountViewView.vue template not resolving dep for dexie-export-import/dist/import

Previous error:

Error: The following dependencies are imported but could not be resolved:

  dexie-export-import/dist/import (imported by /Users/jason/dev/src/trent/crowd-funder-for-time-pwa/src/views/AccountViewView.vue?id=0)

Are they installed?
    at file:///Users/jason/dev/src/trent/crowd-funder-for-time-pwa/node_modules/vite/dist/node/chunks/dep-DJaaTb_D.js:52506:23
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async file:///Users/jason/dev/src/trent/crowd-funder-for-time-pwa/node_modules/vite/dist/node/chunks/dep-DJaaTb_D.js:51972:38
This commit is contained in:
2024-03-24 11:51:58 -06:00
parent 38f44771e9
commit 6f49260c1e
2 changed files with 2 additions and 3 deletions

View File

@@ -516,7 +516,6 @@
<script lang="ts">
import { AxiosError, AxiosRequestConfig } from "axios";
import Dexie from "dexie";
import "dexie-export-import";
import { ImportProgress } from "dexie-export-import/dist/import";
import { ref } from "vue";
import { Component, Vue } from "vue-facing-decorator";

View File

@@ -7,9 +7,9 @@ export default defineConfig({
plugins: [ vue() ],
resolve: {
alias: {
// Provide the path to the buffer module explicitly
buffer: path.resolve(__dirname, 'node_modules', 'buffer'),
"@": path.resolve(__dirname, "./src"),
buffer: path.resolve(__dirname, 'node_modules', 'buffer'),
'dexie-export-import/dist/import': 'dexie-export-import/dist/import/index.js',
},
},
});