knuckleswtf / knuckleswtf/scribe

Cannot read properties of undefined (reading 'highlightElement')

Open
#976 1 comment 0 reactions 0 assignees View on GitHub
awaiting requester action
Dominant language
PHP
Stars
2.3k
Forks
357
PR merge metrics
No merged PRs in 30d

Description

### Scribe version

5.1

### PHP version

8.2

### Laravel version

12

### Scribe config

```ruby
------ SAME AS DEFAULT CONFIG ------
```

### What happened?

every thing working fine , but when we hit api request than showing this :

```
Request failed with error:Cannot read properties of undefined (reading 'highlightElement')

Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.

```

![Image](https://github.com/user-attachments/assets/b7215c06-8f1b-4b75-95ab-b9ed2db413e7)

how to fix it please tell me

### Docs

- [x] I've checked [the docs](https://scribe.knuckles.wtf/laravel), the [troubleshooting guide](https://scribe.knuckles.wtf/laravel/troubleshooting), and [existing issues](https://github.com/knuckleswtf/scribe/issues?q=is%3Aissue+), but I didn't find a solution

Contributor guide

Open the contributing guide

Research direction

Start with the generated API documentation page and its browser DevTools console, using the reported Laravel 12 and PHP 8.2 setup to reproduce the request failure. The report names no source file or test; done would be identifying the failing highlightElement path and verifying the request page works without the error.

Written by the indexing model from the issue text.

Assessment

Tech stack
laravel, php
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.