Skip to content
This repository was archived by the owner on Apr 17, 2023. It is now read-only.
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

Uncaught TypeError: Cannot read property 'version' of undefined #768

Description

@kaiyoma

If I try to view prettier debug info inside Atom, I get this:

...\.atom\packages\prettier-atom\dist\displayDebugInfo\index.js:27
Hide Stack Trace
TypeError: Cannot read property 'version' of undefined
    at getDebugInfo (...\.atom\packages\prettier-atom\dist\displayDebugInfo\index.js:27:51)
    at HTMLElement.displayDebugInfo (...\.atom\packages\prettier-atom\dist\displayDebugInfo\index.js:36:11)
    at CommandRegistry.handleCommandEvent (...\AppData\Local\atom\app-1.47.0\resources\app\static\<embedded>:11:349576)
    at Object.didConfirmSelection (...\AppData\Local\atom\app-1.47.0\resources\app\static\<embedded>:11:694812)
    at SelectListView.confirmSelection (...\AppData\Local\atom\app-1.47.0\resources\app\static\<embedded>:11:866372)
    at HTMLDivElement.core:confirm (...\AppData\Local\atom\app-1.47.0\resources\app\static\<embedded>:11:861251)
    at CommandRegistry.handleCommandEvent (...\AppData\Local\atom\app-1.47.0\resources\app\static\<embedded>:11:349576)
    at KeymapManager.dispatchCommandEvent (...\AppData\Local\atom\app-1.47.0\resources\app\static\<embedded>:11:1242036)
    at KeymapManager.handleKeyboardEvent (...\AppData\Local\atom\app-1.47.0\resources\app\static\<embedded>:11:1238170)
    at WindowEventHandler.handleDocumentKeyEvent (...\AppData\Local\atom\app-1.47.0\resources\app\static\<embedded>:11:284782)

Versions:

OS: Windows 10
Atom: 1.47.0
prettier-atom: 0.60.0
prettier: 2.0.5

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions