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 for module socket.io-client #319

Open
joaorbdg opened this issue Oct 5, 2021 · 1 comment
Open

Could not find a declaration file for module socket.io-client #319

joaorbdg opened this issue Oct 5, 2021 · 1 comment

Comments

@joaorbdg
Copy link

joaorbdg commented Oct 5, 2021

Nuxt application compiler is throwing the following error:

 ERROR  ERROR in /node_modules/vue-socket.io/index.d.ts(1,28):
1:28 Could not find a declaration file for module 'socket.io-client'. '/node_modules/vue-socket.io/node_modules/socket.io-client/lib/index.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/socket.io-client` if it exists or add a new declaration (.d.ts) file containing `declare module 'socket.io-client';`
  > 1 | import SocketIOClient from "socket.io-client";
      |                            ^
    2 | import {
    3 |     DefaultComputed,
    4 |     DefaultData,

Libraries version

"socket.io-client": "^2.1.1",
"vue-socket.io": "^3.0.10",
@levarberry
Copy link

Did you try npm install socket.io-client ?

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