Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find a declaration file #53

Open
pascal-renner opened this issue May 22, 2020 · 1 comment
Open

Could not find a declaration file #53

pascal-renner opened this issue May 22, 2020 · 1 comment

Comments

@pascal-renner
Copy link

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
Copy link

Slgoetz commented Feb 19, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants