Cannot find module 'json5'
See original GitHub issueworkbench.desktop.main.js:sourcemap:3918 激活扩展“christian-kohler.path-intellisense”失败: Cannot find module 'json5'
Require stack:
- c:\Users\Administrator\.vscode\extensions\christian-kohler.path-intellisense-2.2.0\out\configuration\tsconfig.service.js
- c:\Users\Administrator\.vscode\extensions\christian-kohler.path-intellisense-2.2.0\out\configuration\configuration.service.js
- c:\Users\Administrator\.vscode\extensions\christian-kohler.path-intellisense-2.2.0\out\providers\javascript\javascript.provider.js
- c:\Users\Administrator\.vscode\extensions\christian-kohler.path-intellisense-2.2.0\out\providers\default.provider.js
- c:\Users\Administrator\.vscode\extensions\christian-kohler.path-intellisense-2.2.0\out\providers\index.js
- c:\Users\Administrator\.vscode\extensions\christian-kohler.path-intellisense-2.2.0\out\extension.js
- c:\Program Files\Microsoft VS Code\resources\app\out\vs\loader.js
- c:\Program Files\Microsoft VS Code\resources\app\out\bootstrap-amd.js
- c:\Program Files\Microsoft VS Code\resources\app\out\bootstrap-fork.js。
_logMessageInConsole @ workbench.desktop.main.js:sourcemap:3918
_logOrShowMessage @ workbench.desktop.main.js:sourcemap:3919
$onExtensionActivationError @ workbench.desktop.main.js:sourcemap:4063
_doInvokeHandler @ workbench.desktop.main.js:sourcemap:4026
_invokeHandler @ workbench.desktop.main.js:sourcemap:4026
_receiveRequest @ workbench.desktop.main.js:sourcemap:4025
_receiveOneMessage @ workbench.desktop.main.js:sourcemap:4024
(anonymous) @ workbench.desktop.main.js:sourcemap:4022
fire @ workbench.desktop.main.js:sourcemap:95
fire @ workbench.desktop.main.js:sourcemap:424
_receiveMessage @ workbench.desktop.main.js:sourcemap:428
(anonymous) @ workbench.desktop.main.js:sourcemap:425
fire @ workbench.desktop.main.js:sourcemap:95
acceptChunk @ workbench.desktop.main.js:sourcemap:421
(anonymous) @ workbench.desktop.main.js:sourcemap:420
t @ workbench.desktop.main.js:sourcemap:431
emit @ events.js:203
addChunk @ _stream_readable.js:295
readableAddChunk @ _stream_readable.js:276
Readable.push @ _stream_readable.js:210
onStreamRead @ internal/stream_base_commons.js:166
workbench.desktop.main.js:sourcemap:3025 TypeError: Cannot read property 'filepath' of undefined
at eval (.././src/core/KeyDetector.ts:95:57)
at Array.find (<anonymous>)
at Function.getUsages (.././src/core/KeyDetector.ts:95:45)
at ReviewCommentProvider.provideCommentingRanges (.././src/editor/reviewComments.ts:123:74)
at c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:632:240
at c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:51:988
at new Promise (<anonymous>)
at Object.t.asPromise (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:51:960)
at e.$provideCommentingRanges (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:632:200)
at e._doInvokeHandler (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:788:757)
at e._invokeHandler (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:788:449)
at e._receiveRequest (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:787:69)
at e._receiveOneMessage (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:785:970)
at c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:784:213
at e.fire (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:46:67)
at v.fire (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:232:615)
at c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:957:179
at e.fire (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:46:67)
at v.fire (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:232:615)
at t.PersistentProtocol._receiveMessage (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:237:17)
at c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:234:155
at e.fire (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:46:67)
at p.acceptChunk (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:230:129)
at c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:229:483
at Socket.t (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:238:565)
at Socket.emit (events.js:203:13)
at Socket.EventEmitter.emit (domain.js:476:20)
at addChunk (_stream_readable.js:295:12)
at readableAddChunk (_stream_readable.js:276:11)
at Socket.Readable.push (_stream_readable.js:210:10)
at Pipe.onStreamRead (internal/stream_base_commons.js:166:17)
workbench.desktop.main.js:sourcemap:1642 ERR Failed to execute git
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Cannot find module 'json5' on initial run · Issue #2287 - GitHub
bug report On a brand new project, running either one of the following commands would result in the error (see Current Behavior section) ......
Read more >json5 - npm
Start using json5 in your project by running `npm i json5`. There are 3330 other projects in the npm registry using json5.
Read more >How do I resolve "Cannot find module" error using Node.js?
Using npm install installs the module into the current directory only (in a subdirectory called node_modules ). Is app.js located under ...
Read more >json5 | Yarn - Package Manager
JSON5 is an extension to the popular JSON file format that aims to be easier to write and maintain by hand (e.g. for...
Read more >json5-loader - webpack
A webpack loader for parsing json5 files into JavaScript objects. ... by configuring the json5-loader in the module.rules object of the webpack ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thank you. Should be fixed with 2.2.1. Please check and let me know. Will close the issue as soon as I know it works.
The issue reappeared in 2.4.0