question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Editor Key Map Error (minor)

See original GitHub issue

When I try to set the editor.keyMap config entry to ‘sublime’ (per the CodeMirror docs) Styleguidist throws an error:

TypeError: Cannot read property 'attach' of undefined
    in UnControlled (created by Editor)
    in Editor (created by Styled(Editor))
    in Styled(Editor) (created by EditorLoader)
    in EditorLoader (created by Slot)
    in div (created by Slot)
    in Slot (created by Playground)
    in div (created by PlaygroundRenderer)
    in div (created by PlaygroundRenderer)
    in PlaygroundRenderer (created by Styled(Playground))
    in Styled(Playground) (created by Playground)
    in Playground (created by Examples)
    in article (created by ExamplesRenderer)
    in ExamplesRenderer (created by Styled(Examples))
    in Styled(Examples) (created by Examples)
    in Examples (created by ReactComponent)
    in div (created by ReactComponentRenderer)
    in ReactComponentRenderer (created by Styled(ReactComponent))
    in Styled(ReactComponent) (created by ReactComponent)
    in ReactComponent (created by Components)
    in div (created by ComponentsRenderer)
    in ComponentsRenderer (created by Components)
    in Components (created by Section)
    in section (created by SectionRenderer)
    in SectionRenderer (created by Styled(Section))
    in Styled(Section) (created by Section)
    in Section (created by Sections)
    in section (created by SectionsRenderer)
    in SectionsRenderer (created by Styled(Sections))
    in Styled(Sections) (created by Sections)
    in Sections (created by StyleGuide)
    in main (created by StyleGuideRenderer)
    in div (created by StyleGuideRenderer)
    in StyleGuideRenderer (created by Styled(StyleGuide))
    in Styled(StyleGuide) (created by StyleGuide)
    in StyleGuide

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
elevatebartcommented, Mar 21, 2019

The only thing you have to do to fix your bug is somehow import the sublime keymap in the package.

either in the rootJsx file or in one of the components you customized.

1reaction
elevatebartcommented, Dec 2, 2018

Hello @rafegoldberg

Can you provide your styleguide.config.js? I am curious to find out why this is happening.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Keymap - Helix
Minor modes​​ These sub-modes are accessible from normal mode and typically switch back to normal mode after a command.
Read more >
Visual Studio Code Key Bindings
Here you will find the complete list of key bindings for Visual Studio Code and how to change them.
Read more >
Error Messages | Maps JavaScript API - Google Developers
This behavior typically indicates issues with either an API key or billing. In order to use Google Maps Platform products, billing must be...
Read more >
Suddenly error occur for "Missing Key Map ... - Issue Tracker
Hi, I am using Google Maps API with API key in my site which is on localhost when an error appeared saying that...
Read more >
javascript - "using API key multiple times" error after adding ...
3) using a for/in loop to iterate over the "container" object ( fishObj ) with plain old new google.maps.Marker (instead of new MarkerWithLabel ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found