You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After updating to boxen 7.1.1 we see the following error when executing our app.
/.../node_modules/ts-node/dist/index.js:851
return old(m, filename);
^
Error [ERR_REQUIRE_ESM]: require() of ES Module /.../node_modules/boxen/index.js from /.../app.ts not supported.
Instead change the require of index.js in /.../app.ts to a dynamic import() which is available in all CommonJS modules.
Our code imports boxen like this:
importboxenfrom'boxen';
We use ts-node to run the app.
The text was updated successfully, but these errors were encountered:
After updating to boxen 7.1.1 we see the following error when executing our app.
Our code imports boxen like this:
We use
ts-node
to run the app.The text was updated successfully, but these errors were encountered: