-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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]: SyntaxError: Unexpected token 'export' using @fluentui/react-components as ES Module #30778
Comments
I think setting |
this works as expected
|
I just want to make sure the suggestion is understood. I would not have said exactly said "setting |
Because this issue is marked as by design and has not had activity for over 3 days, we're automatically closing it for house-keeping purposes. |
@Hotell, @spmonahan, :) auto-close because "By design" if I don't ping it every three days. :/ |
Yeah, I'd prefer to consolidate but @Hotell is leading the effort so I'll defer to him. |
Library
React Components / v9 (@fluentui/react-components)
System Info
Are you reporting Accessibility issue?
no
Reproduction
https://codesandbox.io/p/sandbox/pedantic-mopsa-423pkr
Bug Description
Actual Behavior
running
test:jest
script (uses ES Modules without transformers) results in:index.js is interpreted as a CommonJS module because the nearest package.json (package root) does not specify
"type": "module"
.Expected Behavior
No syntax errors from
@fluentui
componentsPossible Fix
inject a package.json into all
@fluentui
packagelib
folders with:Logs
No response
Requested priority
Normal
Products/sites affected
No response
Are you willing to submit a PR to fix?
no
Validations
The text was updated successfully, but these errors were encountered: