jpmorganchase / modular

A modular front end development framework

Home Page:https://modular.js.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

esbuild error on node 12

heswell opened this issue · comments

supported engines include node "^12.13.0". However esbuild support for all v12 versions of node is broken by the following

import * as fs from “fs/promises” 

There are several occurrences of this across modular scripts, one example:
https://github.com/jpmorganchase/modular/blob/main/packages/modular-scripts/src/esbuild-scripts/api.ts#L1

it is easily fixed
nodejs/node#35740 (comment)

There's already an open PR for this in #843 which is being merged today.