atom-community / atom-script

:runner: Run ( scripts | selections | source ) in Atom
https://atom.io/packages/script
MIT License
733 stars 269 forks source link

Uncaught Error: Cannot find module '$ATOM_HOME/packages\script\node_modules\uuid\dist\index.js'. ... #2611

Open VAGHELAMAYUR opened 2 years ago

VAGHELAMAYUR commented 2 years ago

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.58.0 x64 Electron: 9.4.4 OS: Microsoft Windows 10 Pro Thrown From: script package 3.32.2

Stack Trace

Uncaught Error: Cannot find module 'C:\Users\Mayur Vaghela.atom\packages\script\node_modules\uuid\dist\index.js'. Please verify that the package.json has a valid "main" entry

At internal/modules/cjs/loader.js:309

Error: Cannot find module 'C:\Users\Mayur Vaghela\.atom\packages\script\node_modules\uuid\dist\index.js'. Please verify that the package.json has a valid "main" entry
    at tryPackage (internal/modules/cjs/loader.js:301:19)
    at Function.Module._findPath (internal/modules/cjs/loader.js:532:18)
    at Module._resolveFilename (internal/modules/cjs/loader.js:784:27)
    at o._resolveFilename (electron/js2c/renderer_init.js:43:689)
    at Function.get_Module._resolveFilename (~/AppData/Local/atom/app-1.58.0/resources/app/static/<embedded>:11:157920)
    at Module.require (/app.asar/static/index.js:61:43)
    at require (~/AppData/Local/atom/app-1.58.0/resources/app/static/<embedded>:11:149207)
    at /packages/script/lib/grammar-utils/matlab.js:6:24)
    at /packages/script/lib/grammar-utils/matlab.js:36:34)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.58.0/resources/app/static/<embedded>:11:149891)
    at Object.value [as .js] (~/AppData/Local/atom/app-1.58.0/resources/app/static/<embedded>:11:153485)
    at Module.load (internal/modules/cjs/loader.js:815:32)
    at Module._load (internal/modules/cjs/loader.js:727:14)
    at Function.Module._load (electron/js2c/asar.js:769:28)
    at Module.require (/app.asar/static/index.js:72:46)
    at require (~/AppData/Local/atom/app-1.58.0/resources/app/static/<embedded>:11:149207)
    at /packages/script/lib/grammar-utils.js:96:11)
    at /packages/script/lib/grammar-utils.js:128:28)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.58.0/resources/app/static/<embedded>:11:149891)
    at Object.value [as .js] (~/AppData/Local/atom/app-1.58.0/resources/app/static/<embedded>:11:153485)
    at Module.load (internal/modules/cjs/loader.js:815:32)
    at Module._load (internal/modules/cjs/loader.js:727:14)
    at Function.Module._load (electron/js2c/asar.js:769:28)
    at Module.require (/app.asar/static/index.js:72:46)
    at require (~/AppData/Local/atom/app-1.58.0/resources/app/static/<embedded>:11:149207)
    at /packages/script/lib/grammars/index.js:12:24)
    at /packages/script/lib/grammars/index.js:614:29)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.58.0/resources/app/static/<embedded>:11:149891)
    at Object.value [as .js] (~/AppData/Local/atom/app-1.58.0/resources/app/static/<embedded>:11:153485)
    at Module.load (internal/modules/cjs/loader.js:815:32)

Commands

Non-Core Packages

atom-beautify 0.33.4 
node-debug 0.1.7 
script 3.32.2 
spell-check-urls 0.5.1 
teletype 0.13.4 
VAGHELAMAYUR commented 2 years ago

issue in problem i am facing every time