0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Cursor】A JavaScript error occurred in the main process Uncaught Exception: Error: Cannot find module の解決策

Posted at

背景

PCを立ち上げたら、Cursor エディタがエラーを吐いて立ち上がらない。昨日、急いでPCを落としたから、どこかで何かが起こったのだろう。

エラー

A JavaScript error occurred in the main process
Uncaught Exception:
Error: Cannot find module 'C:\Users\**\AppData\Local\Programs\cursor\resources\app\out\main.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1152:15)
at s._resolveFilename (node:electron/js2c/browser_init:2:120426)
at node:electron/js2c/browser_init:2:152926
at node:electron/js2c/browser_init:2:126175
at node:electron/js2c/browser_init:2:126179
at BuiltinModule.compileForInternalLoader (node:internal/bootstrap/loaders:398:7)
at BuiltinModule.compileForPublicLoader (node:internal/bootstrap/loaders:337:10)
at loadBuiltinModule (node:internal/modules/helpers:104:7)
at Module._load (node:internal/modules/cjs/loader:1009:17)
at c._load (node:electron/js2c/node_init:2:13801)

解決策

  • Cursor の再インストール
  • Cursor をアンインストールしなくても、公式サイトからダウンロードしたファイルをインストールすることで解決できた
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?