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

ESM import issue in nexjts #65

Open
hotrungnhan opened this issue May 9, 2022 · 2 comments
Open

ESM import issue in nexjts #65

hotrungnhan opened this issue May 9, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@hotrungnhan
Copy link
Contributor

hotrungnhan commented May 9, 2022

  • nodejs : v16.14.2
  • flow-cadut : 0.1.16-alpha.4

Description

import was failed if we won't specifiy the flowcadut packagejson {"type":"module"}, There another way to fixed that using mjs ext.
https://user-images.githubusercontent.com/40029631/167464767-8d446c01-1f7a-4cb2-b0e5-028dae352919.png
Pull #64

Fix

  • Pump version of microbundle
  • fix the path of child modules
@hotrungnhan hotrungnhan added the bug Something isn't working label May 9, 2022
@hotrungnhan
Copy link
Contributor Author

@MaxStalker hope u review it soon

@hotrungnhan hotrungnhan changed the title Import issue nexjts ESM import issue nexjts May 9, 2022
@hotrungnhan hotrungnhan changed the title ESM import issue nexjts ESM import issue in generate code nexjts May 9, 2022
@hotrungnhan hotrungnhan changed the title ESM import issue in generate code nexjts ESM import issue in nexjts May 9, 2022
@nvdtf
Copy link
Member

nvdtf commented Aug 2, 2022

I have the same problem in NextJS. Seems like import works in server-side code (like api routes) but fails in browser side ( like components).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants