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

🐛 BUG: [esinstall] duplicate export 'default' react #3907

Open
1 task done
oclyke opened this issue May 17, 2022 · 0 comments
Open
1 task done

🐛 BUG: [esinstall] duplicate export 'default' react #3907

oclyke opened this issue May 17, 2022 · 0 comments

Comments

@oclyke
Copy link

oclyke commented May 17, 2022

Quick checklist

  • I am using the latest version of Snowpack and all plugins.

What package manager are you using?

yarn

What operating system are you using?

macOS

Describe the bug

mixing import styles (import React from 'react' vs import { default as React } from 'react') between files unexpectedly causes an issue with [esinstall] claiming duplicate export 'default'

Steps to reproduce

easiest to clone the demo repo (link below) and follow reproduction instructions in the readme. along the lines of:

  • try to build using one import style, observe failure
  • switch import style
  • try to build and observe success

note that the issue does not occur when using the dev server

Link to minimal reproducible example (optional)

https://github.com/oclyke-zucchini/snowpack-esinstall-react-duplicate-export-default

@oclyke oclyke changed the title 🐛 BUG: 🐛 BUG: esinstall duplicate export 'default' react May 17, 2022
@oclyke oclyke changed the title 🐛 BUG: esinstall duplicate export 'default' react 🐛 BUG: [esinstall] duplicate export 'default' react May 17, 2022
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

1 participant