Glavin001 / atom-beautify

:mega: Help Wanted - Looking for Maintainer: https://github.com/Glavin001/atom-beautify/issues/2572 | :lipstick: Universal beautification package for Atom editor (:warning: Currently migrating to https://github.com/Unibeautify/ and have very limited bandwidth for Atom-Beautify Issues. Thank you for your patience and understanding :heart: )
http://unibeautify.com/
MIT License
1.49k stars 454 forks source link

Uncaught Error: Cannot find module '../../package.json'Require stack:- $ATOM_HOME/packages\atom... #2601

Open ShahryarRauf123 opened 2 years ago

ShahryarRauf123 commented 2 years ago

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.58.0 x64 Electron: 9.4.4 OS: Microsoft Windows 11 Pro Thrown From: atom-beautify package 0.33.4

Stack Trace

Uncaught Error: Cannot find module '../../package.json' Require stack:

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

Error: Cannot find module '../../package.json'
Require stack:
- C:\Users\Abdul Rauf\.atom\packages\atom-beautify\src\beautifiers\index.coffee
- C:\Users\Abdul Rauf\.atom\packages\atom-beautify\src\beautify.coffee
- C:\Users\Abdul Rauf\AppData\Local\atom\app-1.58.0\resources\app.asar\static\index.html
    at Module._resolveFilename (internal/modules/cjs/loader.js:797:17)
    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/atom-beautify/src/beautifiers/index.coffee:21:7)
    at /packages/atom-beautify/src/beautifiers/index.coffee:1:1)
    at /packages/atom-beautify/src/beautifiers/index.coffee:1:1)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.58.0/resources/app/static/<embedded>:11:149891)
    at Object.value [as .coffee] (~/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/atom-beautify/src/beautify.coffee:9:15)
    at /packages/atom-beautify/src/beautify.coffee:2:1)
    at /packages/atom-beautify/src/beautify.coffee:2:1)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.58.0/resources/app/static/<embedded>:11:149891)
    at Object.value [as .coffee] (~/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 (internal/modules/cjs/helpers.js:74:18)
    at customRequire (~/AppData/Local/atom/app-1.58.0/resources/app/static/<embedded>:1:802772)
    at requireModule (~/AppData/Local/atom/app-1.58.0/resources/app/static/<embedded>:14:1195622)
    at Package.requireMainModule (~/AppData/Local/atom/app-1.58.0/resources/app/static/<embedded>:11:3520513)
    at Package.activateConfig (~/AppData/Local/atom/app-1.58.0/resources/app/static/<embedded>:11:3509801)
    at PackageManager.packageHasSettings (~/AppData/Local/atom/app-1.58.0/resources/app/static/<embedded>:11:908520)
    at PackageCard.hasSettings (~/AppData/Local/atom/app-1.58.0/resources/app/static/<embedded>:14:2729736)
    at PackageCard.updateSettingsState (~/AppData/Local/atom/app-1.58.0/resources/app/static/<embedded>:14:2720004)
    at PackageCard.updateInterfaceState (~/AppData/Local/atom/app-1.58.0/resources/app/static/<embedded>:14:2719827)
    at new PackageCard (~/AppData/Local/atom/app-1.58.0/resources/app/static/<embedded>:14:2711346)
    at PackageDetailView.completeInitialization (~/AppData/Local/atom/app-1.58.0/resources/app/static/<embedded>:14:857941)
    at PackageDetailView.loadPackage (~/AppData/Local/atom/app-1.58.0/resources/app/static/<embedded>:14:858508)

Commands

Non-Core Packages

atom-beautify 0.33.4 
atom-html-preview 0.2.7 
atom-ternjs 0.20.0 
autoclose-html-plus 0.27.2 
busy-signal 2.0.1 
csslint 1.2.0 
emmet 2.4.3 
intentions 2.1.1 
language-ejs 0.4.0 
linter 3.4.0 
linter-eslint 9.0.0 
linter-ui-default 3.4.1 
pigments 0.40.6 
Sublime-Style-Column-Selection 1.7.5 
SilentGlasses commented 1 year ago

If you still need this and are looking for something to fill the spot that Atom left, I am using Pulsar the successor to Atom... This package is working except for one deprecated error listed in #2605

If you don't need this anymore, can you please close this out so it's not just sitting there? Thanks