-
Hi all! This is probably something super simple, but I can't figure this out after a few hours. Would really appreciate it if someone could point me in the right direction. I have two workspaces. One exports a string constant. The other imports it and prints it. I'm using es modules to do this over common js. No matter what I try, I keep getting I've tried adding Can anyone please explain how I can use es modules with workspaces for node js scripts? Note es modules work fine for non-workspace (relative) imports and common js does work for workspace imports. I've attached my sample project below. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yarn PnP doesn't support ESM yet (#638), I implemented it in #2161 but due to the state of loaders in Node I've left it alone in a draft state. Last time I tested it it did work so if you want to give it a try feel free to do so.
|
Beta Was this translation helpful? Give feedback.
Yarn PnP doesn't support ESM yet (#638), I implemented it in #2161 but due to the state of loaders in Node I've left it alone in a draft state. Last time I tested it it did work so if you want to give it a try feel free to do so.