Browse Source

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
pull/2/head
Jason Buchanan 8 months ago
parent
commit
6f49260c1e
No known key found for this signature in database GPG Key ID: 1A12361012426318
  1. 1
      src/views/AccountViewView.vue
  2. 4
      vite.config.mjs

1
src/views/AccountViewView.vue

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

4
vite.config.mjs

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

Loading…
Cancel
Save