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

Attempted import error: 'detect-browser' does not contain a default export (imported as '$detectbrowser'). #353

Open
junjieit opened this issue Aug 7, 2024 · 2 comments

Comments

@junjieit
Copy link

junjieit commented Aug 7, 2024

The packaging tool will package import { detect } from 'detect-browser'; into the following code

import $detectbrowser from "detect-browser";
const { detect } = $detectbrowser;

image

Cause nextjs environment to report errors
image

@hiromasa0629
Copy link

hiromasa0629 commented Aug 31, 2024

Facing same issue for v17.1.2

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

3 participants
@junjieit @hiromasa0629 and others