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

A hybrid EJS – CommonJS module is being imported as CommonJS #9181

Closed
leduyquang753 opened this issue Apr 2, 2024 · 2 comments
Closed

Comments

@leduyquang753
Copy link

Reproduction

https://stackblitz.com/edit/remix-run-remix-cx78kz?file=app%2Froot.tsx

  1. Use the default template from remix-create.
  2. Try to import stuff from @fluentui/react-components like in app\root.tsx.

System Info

System:
	OS: Windows 11 10.0.22631
	CPU: (8) x64 Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz
	Memory: 8.72 GB / 19.78 GB
Binaries:
	Node: 21.7.1 - C:\Program Files\NodeJS\node.EXE
	Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
	npm: 10.5.0 - C:\Program Files\NodeJS\npm.CMD
Browsers:
	Edge: Chromium (123.0.2420.65)
	Internet Explorer: 11.0.22621.1
npmPackages:
	@remix-run/dev: ^2.8.1 => 2.8.1
	@remix-run/node: ^2.8.1 => 2.8.1
	@remix-run/react: ^2.8.1 => 2.8.1
	@remix-run/serve: ^2.8.1 => 2.8.1
	vite: ^5.1.0 => 5.2.7

Used Package Manager

npm

Expected Behavior

The module is imported as ESM and the imports successful.

Actual Behavior

The module is imported as CommonJS and the imports failed.

@alcpereira
Copy link
Contributor

This seems to be an issue with @fluentui/react-components, see here.

@brophdawg11
Copy link
Contributor

Closing this in favor of microsoft/fluentui#30634 (comment) - please let us know if that does not end up being the root cause and we can re-open if this is indeed a Remix issue.

@brophdawg11 brophdawg11 closed this as not planned Won't fix, can't repro, duplicate, stale Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants