You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I upgraded all the dependencies in my project today, and while executing vue-tsc there is an error stating that the return type of setTimeout doesn't match, setTimeout is using nodejs declarations, but I didn't use @types/node for types in tsconfig.json.
I need to rule out that it's my project dependencies, I created a simple project using create-vue and when I wrote read in src/main.ts the nodejs api popped up, which suggests that it might not be my dependencies, and then I experimented with a pure ts project that didn't have this problem.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I upgraded all the dependencies in my project today, and while executing
vue-tsc
there is an error stating that the return type ofsetTimeout
doesn't match,setTimeout
is using nodejs declarations, but I didn't use@types/node
for types in tsconfig.json.I need to rule out that it's my project dependencies, I created a simple project using
create-vue
and when I wroteread
insrc/main.ts
the nodejs api popped up, which suggests that it might not be my dependencies, and then I experimented with a pure ts project that didn't have this problem.Now I don't know how to fix it, maybe it's a bug?
My tsconfig.json
tsconfig.node.json
Beta Was this translation helpful? Give feedback.
All reactions