question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

update Vuex types inside node_modules

See original GitHub issue

Reproduction Steps

-Update to vue.js 2.5

  • This might be because "Previously, we already recommend using ES-style imports (import Vue from ‘vue’) everywhere with “allowSyntheticDefaultImports”: true in tsconfig.json. The new typings will officially move to ES-style import/export syntax, so that config is no longer necessary, and users are required to use ES-style imports in all cases. " - from https://goo.gl/pPJeiD

Error

in ‘project/node_modules/vuex-persist/node_modules/vuex/types/vue.d.ts’

(9,40): error TS2304: Cannot find name 'Vue'.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
championswimmercommented, Nov 9, 2017

fixed

2reactions
maartenvanvlietcommented, Nov 7, 2017

Same thing happened for me, deleting node_modules in the package indeed does fix this. However, node_modules is not checked into our repository so on CI or production the error returns as we run yarn install there.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't resolve 'node_modules/vuex/types/index' #2076 - GitHub
In a nodejs app open app.js with VSCode and type "import create"; Select "createStore / node_modules/vuex/types/index" and press enter ...
Read more >
Mutations | Vuex
The only way to actually change state in a Vuex store is by committing a mutation. Vuex mutations are very similar to events:...
Read more >
Vuex in vue .net core application - Stack Overflow
thanks. that seems to have fixed most of it but I am still getting a couple of errors: ERROR in [at-loader] ./node_modules/vuex/types/helpers.d.
Read more >
vuex - npm
state management for Vue.js. Latest version: 4.1.0, last published: 2 months ago. Start using vuex in your project by running `npm i vuex`....
Read more >
How To Manage State in a Vue.js Application with Vuex
A mutation is a method that mutates or updates the store property with the value provided. Getters are methods that can modify or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found