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
When I attempted to upgrade my project to Ink 4 / ESM, I got the following error related to ink-use-stdout-dimensions:
/Users/jrr/repos/inkle/node_modules/ink-use-stdout-dimensions/build/index.js:3
const ink_1 = require("ink");
^
Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/jrr/repos/inkle/node_modules/ink/build/index.js from /Users/jrr/repos/inkle/node_modules/ink-use-stdout-dimensions/build/index.js not supported.
Instead change the require of /Users/jrr/repos/inkle/node_modules/ink/build/index.js in /Users/jrr/repos/inkle/node_modules/ink-use-stdout-dimensions/build/index.js to a dynamic import() which is available in all CommonJS modules.
at Object.<anonymous> (/Users/jrr/repos/inkle/node_modules/ink-use-stdout-dimensions/build/index.js:3:15) {
code: 'ERR_REQUIRE_ESM'
}
Node.js v18.15.0
I don't pretend to understand ESM, but I suspect ink-use-stdout-dimensions will need some changes to remain compatible with Ink 4.
When I attempted to upgrade my project to Ink 4 / ESM, I got the following error related to ink-use-stdout-dimensions:
I don't pretend to understand ESM, but I suspect ink-use-stdout-dimensions will need some changes to remain compatible with Ink 4.
For what it's worth, here's my tsconfig:
The text was updated successfully, but these errors were encountered: