flow-cadut icon indicating copy to clipboard operation
flow-cadut copied to clipboard

ESM import issue in nexjts

Open hotrungnhan opened this issue 2 years ago • 2 comments

  • 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 avatar May 09 '22 17:05 hotrungnhan

@MaxStalker hope u review it soon

hotrungnhan avatar May 09 '22 17:05 hotrungnhan

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).

nvdtf avatar Aug 02 '22 23:08 nvdtf