Giter Club home page Giter Club logo

Comments (4)

geneukum avatar geneukum commented on July 25, 2024

To add to the original post, this doesn't seem to reproduce unless I fairly quickly type something else into the search bar which appears to result in a different console error:

Unhandled Promise Rejection: TypeError: undefined is not an object (evaluating 'this.boundList[0].firstNode')

from ember-api-docs.

jenweber avatar jenweber commented on July 25, 2024

What are you trying to search for when you type “all”? This may help with narrowing down the issue, if there’s some specific method in the docs that is the problem.

from ember-api-docs.

geneukum avatar geneukum commented on July 25, 2024

Hey @jenweber, I think that I might have been looking for alias or something like that, but it has been a few days so I don't totally remember.

I stepped through the error a bit and I think that first one is happening because the entry associated with "node_modules/rsvp/lib/rsvp/promise/all.js" does not have a top level module property:

...
  {
      "file": "node_modules/rsvp/lib/rsvp/promise/all.js",
      "line": 3,
      "class": "Promise",
      "name": "all",
      "static": 1,
      "_tags": ["module:undefined", "version:4.8.0"],
      "hierarchy": { "lvl1": "Promise", "lvl2": "all" },
      "objectID": "969593002",
      "_highlightResult": {
        "name": {
          "value": "<em>all</em>",
          "matchLevel": "full",
          "fullyHighlighted": true,
          "matchedWords": ["all"]
        },
        "hierarchy": {
          "lvl1": {
            "value": "Promise",
            "matchLevel": "none",
            "matchedWords": []
          },
          "lvl2": {
            "value": "<em>all</em>",
            "matchLevel": "full",
            "fullyHighlighted": true,
            "matchedWords": ["all"]
          }
        }
      }
 ...

This causes an error on line 16 in app/components/search-input/dropdown-result.js where it tries to unpack that value as: let module = this.get('result.module');.

from ember-api-docs.

geneukum avatar geneukum commented on July 25, 2024

It looks like we get the same behavior any time that we search for all, race, reject, or resolve and that the entries breaking it are the ones scoped to the Promise class from the RSVP project.

We probably need to update the docs in some way so that these entries end up getting scoped to the right module rather than being undefined.

Alternatively/Additionally, maybe we could update this DropdownResult component to drop those results which don't have the expected structure?

Do you have any thoughts, @jenweber?

from ember-api-docs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.