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

Can't build web version - Extension terminal-suggest wants 'fs/promises' #237008

Open
turbobuilt opened this issue Dec 27, 2024 · 1 comment
Open
Assignees

Comments

@turbobuilt
Copy link

turbobuilt commented Dec 27, 2024

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version: 1.97.0
  • OS Version: Ubuntu 22.04
  • Node: v22.12.0
    Steps to Reproduce:
  1. git clone git@github.com:microsoft/vscode.git --depth=1
  2. cd vscode
  3. npm i
  4. npm run watch
  5. separate terminal after watch stops compiling: npm run watch-web
c@c:~/omitted/vscode$ npm run compile-web

> code-oss-dev@1.97.0 compile-web
> node ./node_modules/gulp/bin/gulp.js compile-web

[10:56:10] Using gulpfile ~/omitted/vscode/gulpfile.js
[10:56:10] Starting 'compile-web'...
[10:56:35] Finished packaging web extension configuration-editing with 0 errors.
[10:56:35] Finished packaging web extension css-language-features/client with 0 errors.
[10:56:35] Finished packaging web extension css-language-features/server with 0 errors.
[10:56:35] Finished packaging web extension emmet with 0 errors.
[10:56:35] Finished packaging web extension extension-editing with 0 errors.
[10:56:35] Finished packaging web extension git-base with 0 errors.
[10:56:35] Finished packaging web extension github-authentication with 0 errors.
[10:56:35] Finished packaging web extension html-language-features/client with 0 errors.
[10:56:35] Finished packaging web extension html-language-features/server with 0 errors.
[10:56:35] Finished packaging web extension ipynb with 0 errors.
[10:56:35] Finished packaging web extension ipynb with 0 errors.
[10:56:35] Finished packaging web extension json-language-features/client with 0 errors.
[10:56:35] Finished packaging web extension json-language-features/server with 0 errors.
[10:56:35] Finished packaging web extension markdown-language-features with 0 errors.
[10:56:35] Finished packaging web extension markdown-math with 0 errors.
[10:56:35] Finished packaging web extension media-preview with 0 errors.
[10:56:35] Finished packaging web extension merge-conflict with 0 errors.
[10:56:35] Finished packaging web extension microsoft-authentication with 0 errors.
[10:56:35] Finished packaging web extension npm with 0 errors.
[10:56:35] Finished packaging web extension references-view with 0 errors.
[10:56:35] Finished packaging web extension search-result with 0 errors.
[10:56:35] Finished packaging web extension simple-browser with 0 errors.
[10:56:35] Finished packaging web extension terminal-suggest with 1 errors.
[10:56:35] {
  moduleIdentifier: '/omitted/vscode/node_modules/ts-loader/index.js??ruleSet[1].rules[0].use[0]!/omitted/vscode/extensions/mangle-loader.js??ruleSet[1].rules[0].use[1]!/omitted/vscode/extensions/terminal-suggest/src/terminalSuggestMain.ts',
  moduleName: './src/terminalSuggestMain.ts',
  loc: '50:24-46',
  message: "Module not found: Error: Can't resolve 'fs/promises' in '/omitted/vscode/extensions/terminal-suggest/src'",
  moduleId: 0,
  moduleTrace: [],
  details: "resolve 'fs/promises' in '/omitted/vscode/extensions/terminal-suggest/src'\n" +
    '  Parsed request is a module\n' +
    '  using description file: /omitted/vscode/extensions/terminal-suggest/package.json (relative path: ./src)\n' +
    "    Field 'browser' doesn't contain a valid alias configuration\n" +
    '    resolve as module\n' +
    "      /omitted/vscode/extensions/terminal-suggest/src/node_modules doesn't exist or is not a directory\n" +
    "      /omitted/vscode/extensions/terminal-suggest/node_modules doesn't exist or is not a directory\n" +
    '      looking for modules in /omitted/vscode/extensions/node_modules\n' +
    "        /omitted/vscode/extensions/node_modules/fs doesn't exist\n" +
    '      looking for modules in /omitted/vscode/node_modules\n' +
    "        /omitted/vscode/node_modules/fs doesn't exist\n" +
    "      /omitted/node_modules doesn't exist or is not a directory\n" +
    "      /home/c/node_modules doesn't exist or is not a directory\n" +
    "      /home/node_modules doesn't exist or is not a directory\n" +
    "      /node_modules doesn't exist or is not a directory",
  stack: "ModuleNotFoundError: Module not found: Error: Can't resolve 'fs/promises' in '/omitted/vscode/extensions/terminal-suggest/src'\n" +
    '    at /omitted/vscode/node_modules/webpack/lib/Compilation.js:2109:28\n' +
    '    at /omitted/vscode/node_modules/webpack/lib/NormalModuleFactory.js:908:13\n' +
    '    at eval (eval at create (/omitted/vscode/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:10:1)\n' +
    '    at /omitted/vscode/node_modules/webpack/lib/NormalModuleFactory.js:333:22\n' +
    '    at eval (eval at create (/omitted/vscode/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:9:1)\n' +
    '    at /omitted/vscode/node_modules/webpack/lib/NormalModuleFactory.js:512:22\n' +
    '    at /omitted/vscode/node_modules/webpack/lib/NormalModuleFactory.js:150:10\n' +
    '    at /omitted/vscode/node_modules/webpack/lib/NormalModuleFactory.js:775:25\n' +
    '    at /omitted/vscode/node_modules/webpack/lib/NormalModuleFactory.js:992:8\n' +
    '    at /omitted/vscode/node_modules/webpack/lib/NormalModuleFactory.js:1121:5'
}
[10:56:35] Finished packaging web extension typescript-language-features with 0 errors.
[10:56:35] Finished packaging web extension typescript-language-features with 0 errors.
[10:56:35] Finished packaging web extension vscode-test-resolver with 0 errors.
[10:56:35] Finished 'compile-web' after 25 s
Copy link

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.96.2. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

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

No branches or pull requests

2 participants