federomero / pretty-json

Atom plugin. Format JSON documents.
MIT License
94 stars 23 forks source link

Uncaught Error: Cannot find module 'json-bigint' #78

Closed AndersonSantos-CL closed 6 years ago

AndersonSantos-CL commented 6 years ago

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.27.2 x64 Electron: 1.7.15 OS: Microsoft Windows 10 Pro Thrown From: pretty-json package 2.0.0

Stack Trace

Uncaught Error: Cannot find module 'json-bigint'

At C:\Users\asantos\AppData\Local\atom\app-1.27.2\resources\app\node_modules\text-buffer\lib\text-buffer.js:980

Error: Cannot find module 'json-bigint'
    at Module._resolveFilename (module.js:470:15)
    at Module._resolveFilename (~/AppData/Local/atom/app-1.27.2/resources/electron.asar/common/reset-search-paths.js:35:12)
    at Function.get_Module._resolveFilename (~/AppData/Local/atom/app-1.27.2/resources/app/src/module-cache.js:354:58)
    at Module.require (/app.asar/static/index.js:40:43)
    at require (~/AppData/Local/atom/app-1.27.2/resources/app/src/native-compile-cache.js:66:33)
    at Object.stringify (/packages/pretty-json-master/src/formatter.js:19:21)
    at Object.jsonify (/packages/pretty-json-master/src/formatter.js:88:22)
    at /packages/pretty-json-master/src/init.js:96:50
    at /packages/pretty-json-master/src/init.js:36:42
    at getSelectionsOrderedByBufferPosition.map (~/AppData/Local/atom/app-1.27.2/resources/app/src/text-editor.js:1430:92)
    at Array.map (native)
    at transact (~/AppData/Local/atom/app-1.27.2/resources/app/src/text-editor.js:1430:66)
    at TextBuffer.module.exports.TextBuffer.transact (~/AppData/Local/atom/app-1.27.2/resources/app/node_modules/text-buffer/lib/text-buffer.js:973:24)
    at TextEditor.transact (~/AppData/Local/atom/app-1.27.2/resources/app/src/text-editor.js:2002:30)
    at mergeIntersectingSelections (~/AppData/Local/atom/app-1.27.2/resources/app/src/text-editor.js:1429:25)
    at TextEditor.mergeSelections (~/AppData/Local/atom/app-1.27.2/resources/app/src/text-editor.js:3419:26)
    at TextEditor.mergeIntersectingSelections (~/AppData/Local/atom/app-1.27.2/resources/app/src/text-editor.js:3390:42)
    at TextEditor.mutateSelectedText (~/AppData/Local/atom/app-1.27.2/resources/app/src/text-editor.js:1428:23)
    at Object.replaceText (/packages/pretty-json-master/src/init.js:32:12)
    at Object.jsonify (/packages/pretty-json-master/src/init.js:96:12)
    at HTMLElement.prettyJsonJsonifyLiteralAndPrettify (/packages/pretty-json-master/src/init.js:133:14)
    at CommandRegistry.handleCommandEvent (~/AppData/Local/atom/app-1.27.2/resources/app/src/command-registry.js:384:49)
    at CommandRegistry.dispatch (~/AppData/Local/atom/app-1.27.2/resources/app/src/command-registry.js:273:23)
    at AtomEnvironment.dispatchApplicationMenuCommand (~/AppData/Local/atom/app-1.27.2/resources/app/src/atom-environment.js:1347:25)
    at EventEmitter.outerCallback (~/AppData/Local/atom/app-1.27.2/resources/app/src/application-delegate.js:339:53)
    at emitThree (events.js:116:13)
    at EventEmitter.emit (events.js:197:7)

Commands

     -1:18.1.0 application:new-file (ul.list-inline.tab-bar.inset-panel)
     -1:16.5.0 core:paste (input.hidden-input)
     -1:13.8.0 core:select-all (input.hidden-input)
     -1:07.2.0 pretty-json:minify (input.hidden-input)
     -0:18.7.0 core:select-all (input.hidden-input)
     -0:11.5.0 pretty-json:jsonify-literal-and-prettify (input.hidden-input)

Non-Core Packages

pretty-json 2.0.0