Question: Would `Error: Can't resolve 'process/browser'` prevent building?
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- typescript, webpack
- Domain
- build-system
Research direction
Start with the webpack error path from node_modules/immer/dist/immer.esm.mjs and the importing entry points src/formatter-settings/assets/app/store.ts and src/formatter-settings/assets/index.tsx. Reproduce the build and determine whether the reported resolution errors prevent a successful build and viewing changes.
Written by the indexing model from the issue text.
Description
I saw this error and was wondering if it would prevent me from seeing any changes I made.
Error message image

Long error message text
ERROR in ./node_modules/immer/dist/immer.esm.mjs 1:110-117
Module not found: Error: Can't resolve 'process/browser' in '/home/hamir/repositories/vscode-java-pack/node_modules/immer/dist'
Did you mean 'browser.js'?
BREAKING CHANGE: The request 'process/browser' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
resolve 'process/browser' in '/home/hamir/repositories/vscode-java-pack/node_modules/immer/dist'
Parsed request is a module
using description file: /home/hamir/repositories/vscode-java-pack/node_modules/immer/package.json (relative path: ./dist)
Field 'browser' doesn't contain a valid alias configuration
resolve as module
/home/hamir/repositories/vscode-java-pack/node_modules/immer/dist/node_modules doesn't exist or is not a directory
/home/hamir/repositories/vscode-java-pack/node_modules/immer/node_modules doesn't exist or is not a directory
/home/hamir/repositories/vscode-java-pack/node_modules/node_modules doesn't exist or is not a directory
looking for modules in /home/hamir/repositories/vscode-java-pack/node_modules
existing directory /home/hamir/repositories/vscode-java-pack/node_modules/process
using description file: /home/hamir/repositories/vscode-java-pack/node_modules/process/package.json (relative path: .)
using description file: /home/hamir/repositories/vscode-java-pack/node_modules/process/package.json (relative path: ./browser)
Field 'browser' doesn't contain a valid alias configuration
/home/hamir/repositories/vscode-java-pack/node_modules/process/browser doesn't exist
/home/hamir/repositories/node_modules doesn't exist or is not a directory
/home/hamir/node_modules doesn't exist or is not a directory
/home/node_modules doesn't exist or is not a directory
/node_modules doesn't exist or is not a directory
@ ./node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js 91:0-34 93:0-104 96:0-41 109:53-60 109:70-77 145:0-53 204:11-22 204:30-45 523:0-91 599:20-28 607:26-38 618:27-43 731:0-62 751:12-20 756:19-35 1778:0-9 1779:0-686 1779:0-686 1779:0-686 1779:0-686 1779:0-686
@ ./src/formatter-settings/assets/app/store.ts 8:18-45
@ ./src/formatter-settings/assets/index.tsx 32:32-54
ERROR in ./node_modules/immer/dist/immer.esm.mjs
Cannot read properties of undefined (reading 'module')
TypeError: Cannot read properties of undefined (reading 'module')
at ProvidedDependencyTemplate.apply (/home/hamir/repositories/vscode-java-pack/node_modules/webpack/lib/dependencies/ProvidedDependency.js:122:61)
at JavascriptGenerator.sourceDependency (/home/hamir/repositories/vscode-java-pack/node_modules/webpack/lib/javascript/JavascriptGenerator.js:206:12)
at JavascriptGenerator.sourceModule (/home/hamir/repositories/vscode-java-pack/node_modules/webpack/lib/javascript/JavascriptGenerator.js:112:9)
at JavascriptGenerator.generate (/home/hamir/repositories/vscode-java-pack/node_modules/webpack/lib/javascript/JavascriptGenerator.js:98:8)
at NormalModule.codeGeneration (/home/hamir/repositories/vscode-java-pack/node_modules/webpack/lib/NormalModule.js:1204:22)
at /home/hamir/repositories/vscode-java-pack/node_modules/webpack/lib/Compilation.js:3326:22
at /home/hamir/repositories/vscode-java-pack/node_modules/webpack/node_modules/enhanced-resolve/lib/forEachBail.js:16:12
at /home/hamir/repositories/vscode-java-pack/node_modules/webpack/lib/Cache.js:93:5
at Hook.eval [as callAsync] (eval at create (/home/hamir/repositories/vscode-java-pack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
at Cache.get (/home/hamir/repositories/vscode-java-pack/node_modules/webpack/lib/Cache.js:75:18)
@ ./node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js 91:0-34 93:0-104 96:0-41 109:53-60 109:70-77 145:0-53 204:11-22 204:30-45 523:0-91 599:20-28 607:26-38 618:27-43 731:0-62 751:12-20 756:19-35 1778:0-9 1779:0-686 1779:0-686 1779:0-686 1779:0-686 1779:0-686
@ ./src/formatter-settings/assets/app/store.ts 8:18-45
@ ./src/formatter-settings/assets/index.tsx 32:32-54
assets (webpack 5.74.0) compiled with 2 errors in 21079 ms
- Dominant language
- TypeScript
- Stars
- 352
- Forks
- 166
- Avg merge
- 17h 47m
- Merged PRs (30d)
- 32
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/vscode-java-pack
-
Memory Leak in Linux Openai-triaged bug
Difficulty 4/5 3-5 days Newbie friendliness 42/100
microsoft/vscode-java-pack#1543 · 8 comments · 4 reactions ·
-
ai-triaged bug
Difficulty 3/5 1-2 days Newbie friendliness 35/100
microsoft/vscode-java-pack#1443 · 1 comment · 2 reactions ·
-
ai-triaged bug
Difficulty 3/5 1-2 days Newbie friendliness 45/100
microsoft/vscode-java-pack#1425 · 1 comment ·
-
ai-triaged enhancement feature-request
Difficulty 5/5 Over a week Newbie friendliness 20/100
microsoft/vscode-java-pack#1423 · 2 comments · 1 reaction ·
-
ai-triaged area/jdtls bug needs-investigation
Difficulty 4/5 3-5 days Newbie friendliness 25/100
microsoft/vscode-java-pack#1420 · 1 comment ·
All issues in microsoft/vscode-java-pack
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
copse-dev/agent-pane#2953 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·