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

does not provide an export named 'default' #1739

Closed
lee1031 opened this issue Jan 27, 2021 · 0 comments
Closed

does not provide an export named 'default' #1739

lee1031 opened this issue Jan 27, 2021 · 0 comments

Comments

@lee1031
Copy link

lee1031 commented Jan 27, 2021

import { io } from "socket.io-client";

const socket = io();

export default socket;
Uncaught SyntaxError: The requested module '/node_modules/socket.io-client/build/index.js?v=6e6e3917' does not provide an export named 'default'

System Info

  • "socket.io-client": "3.1.0"
  • vite version: 2.0.0-beta.50
  • Operating System: win10
  • Node version: 15.6.0
  • Package manager (npm/yarn/pnpm) and version: yarn
@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant