Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

4.8.1 Socket.io with Nextjs Type Errors#5409

Unanswered
anthonyalayo asked this question inQ&A
Discussion options

Hey all, has anyone encountered this recently and know how to fix it?

   Checking validity of types  ..../app/socket-test/page.tsx:8:12Type error: Property 'on' does not exist on type 'Socket<DefaultEventsMap, DefaultEventsMap>'.   6 | export default function Home() {   7 |   useEffect(() => {>  8 |     socket.on('connect', () => {     |            ^   9 |       console.log('Connected to server');  10 |     });  11 |Next.js build worker exited with code: 1 and signal: null
You must be logged in to vote

Replies: 0 comments

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
1 participant
@anthonyalayo

[8]ページ先頭

©2009-2025 Movatter.jp