Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

string-width #1699

Open
joneldiablo opened this issue May 3, 2023 · 2 comments
Open

string-width #1699

joneldiablo opened this issue May 3, 2023 · 2 comments

Comments

@joneldiablo
Copy link

Issue Summary

stirng-width gives error install "yarn add sqlite3"

Relevant logs or output

var stringWidth = require('string-width')
                  ^

Error [ERR_REQUIRE_ESM]: require() of ES Module D:\entersol\corrales\ecosystem\electron-server\node_modules\string-width\index.js from D:\entersol\corrales\ecosystem\electron-server\node_modules\wide-align\align.js not supported.
Instead change the require of index.js in D:\entersol\corrales\ecosystem\electron-server\node_modules\wide-align\align.js to a dynamic import() which is available in all CommonJS modules.
    at Object.<anonymous> (D:\entersol\corrales\ecosystem\electron-server\node_modules\wide-align\align.js:2:19)
    at Object.<anonymous> (D:\entersol\corrales\ecosystem\electron-server\node_modules\gauge\render-template.js:2:13)
    at Object.<anonymous> (D:\entersol\corrales\ecosystem\electron-server\node_modules\gauge\plumbing.js:3:22)
    at Object.<anonymous> (D:\entersol\corrales\ecosystem\electron-server\node_modules\gauge\index.js:2:16)
    at Object.<anonymous> (D:\entersol\corrales\ecosystem\electron-server\node_modules\npmlog\log.js:3:13)
    at Object.<anonymous> (D:\entersol\corrales\ecosystem\electron-server\node_modules\node-pre-gyp\lib\node-pre-gyp.js:15:11)
    at Object.<anonymous> (D:\entersol\corrales\ecosystem\electron-server\node_modules\node-pre-gyp\bin\node-pre-gyp:15:20) {
  code: 'ERR_REQUIRE_ESM'

Version

3, 4.2.5, 5.x

Node.js Version

16.X

How did you install the library?

yarn add sqlite3

@s4kh
Copy link

s4kh commented May 12, 2023

any news on this?

@lexGPT
Copy link

lexGPT commented Aug 9, 2023

I'm also experiencing this problem. But it's only specific to yarn (V1 or V2). No problems using npm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants