codesandbox-client icon indicating copy to clipboard operation
codesandbox-client copied to clipboard

Why is it sometimes imported from `main` field and sometimes imported from `module` field

Open lastnigtic opened this issue 3 years ago • 1 comments

🐛 bug report

Preflight Checklist

  • [x] I have read the Contributing Guidelines for this project.
  • [x] I agree to follow the Code of Conduct that this project adheres to.
  • [x] I have searched the issue tracker for an issue that matches the one I want to file, without success.

Description of the problem

I have some dependcies compiles to es6 and other compiles to es5. So the behavior in extends of Class was broken.

How has this issue affected you? What are you trying to accomplish?

I get Class constructor Selection cannot be invoked without 'new' I want to import file defined by main field in package.json or compile them all to es5

To Reproduce

Insert table and press backspace at the head of the next line. image image image

Link to sandbox: sandbox (optional)

lastnigtic avatar Jun 20 '22 15:06 lastnigtic

image


image

image

lastnigtic avatar Jun 21 '22 02:06 lastnigtic