flow-cadut
flow-cadut copied to clipboard
ESM import issue in nexjts
- 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
@MaxStalker hope u review it soon
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).