-
Notifications
You must be signed in to change notification settings - Fork 37
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
Extension not working on macos on 1.88.1 #577
Comments
vscode-spellright/src/spellright.js Line 16 in d66a383
Wrapped it with an import as suggested let osLocale
import('os-locale')
.then(module => (osLocale = module))
.catch(error => console.error('Error during dynamic import:', error));
// haven't tested if it is imported correctly, rollback to a version that supports require imports may be a better solution and faced another error: Warning TypeError: glob is not a function fixed it by changing vscode-spellright/lib/bindings.js Line 12 in d66a383
vscode-spellright/src/spellright.js Line 11 in d66a383
to const {glob} = require("glob") and vscode-spellright/lib/bindings.js Line 18 in d66a383
vscode-spellright/src/spellright.js Line 2050 in d66a383
to - glob(
+ glob.sync(
After saving and restarting the editor, the extension seems to be working correctly. |
Reproduced on Debian, same VSCodium version. Probaly related:
Root cause might be #500 (comment) @bartosz-antosik could you update the binary dependencies, please? |
I used this on VSCodium 1.89.1 and this works. Thanks. OS: Linux (Fedora 39) |
Activating extension ban.spellright failed due to an error:
2024-04-29 01:32:00.927 [error] Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/user/.vscode-oss/extensions/ban.spellright-3.0.124-universal/node_modules/os-locale/index.js from /Users/user/.vscode-oss/extensions/ban.spellright-3.0.124-universal/src/spellright.js not supported.
Instead change the require of index.js in /Users/user/.vscode-oss/extensions/ban.spellright-3.0.124-universal/src/spellright.js to a dynamic import() which is available in all CommonJS modules.
Version: 1.88.1
Release: 24104
Commit: 0d01a72525276e5e3771fe5851b9c83de0de1e2b
Date: 2024-04-13T01:43:30.924Z
Electron: 28.2.8
ElectronBuildId: undefined
Chromium: 120.0.6099.291
Node.js: 18.18.2
V8: 12.0.267.19-electron.0
ОС: Darwin arm64 23.4.0
The text was updated successfully, but these errors were encountered: