vue-electron / vuex-electron

Integration of Vuex and Electron
MIT License
305 stars 97 forks source link

Could not find a declaration file #53

Open pascal-renner opened 4 years ago

pascal-renner commented 4 years ago

I imported the module like this import { createPersistedState, createSharedMutations } from "vuex-electron"

and got the error:

5:61 Could not find a declaration file for module 'vuex-electron'. 'C:/Users/pasca/Projects/time-manager/node_modules/vuex-electron/dist/index.js' implicitly has an 'any' type.
  Try `npm install @types/vuex-electron` if it exists or add a new declaration (.d.ts) file containing `declare module 'vuex-electron';`

I kinda fixed it with adding a index.d.ts file in the modules containing declare module 'vuex-electron'; but im getting a Module not found: Error: Can't resolve 'worker_threads' in 'C:\Users\pasca\Projects\time-manager\node_modules\write-file-atomic' error now

Slgoetz commented 3 years ago

I see the same error. Did you ever figure this out?