# JS: No Front-End Coverage

### Problem <a href="#problem" id="problem"></a>

I have instrumented my code and used it however I see no coverage reported for my files.

### Solutions <a href="#solutions" id="solutions"></a>

#### Disable caching in your Browser <a href="#disable-caching-in-your-browser" id="disable-caching-in-your-browser"></a>

In Chrome, open the Developer mode (F12), and check the 'Disable cache option under the Network tab.

<figure><img src="/files/zanlsAgKQHiYSmxjDlMO" alt=""><figcaption></figcaption></figure>

#### Validate the Instrumentation and build number in the JS source from the Browser <a href="#validate-the-instrumentation-and-build-number-in-the-js-source-from-the-browser" id="validate-the-instrumentation-and-build-number-in-the-js-source-from-the-browser"></a>

In your Browser, open the source code of your JS page: is there the Sealights' instrumentation code and the right build number?

<figure><img src="/files/vloiMEfj9zV6YIcH0xcJ" alt=""><figcaption></figcaption></figure>

#### Validate the application is using instrumented source and not compressed files from the Build stage <a href="#validate-the-application-is-using-instrumented-source-and-not-compressed-files-from-the-build-stage" id="validate-the-application-is-using-instrumented-source-and-not-compressed-files-from-the-build-stage"></a>

* Check JS is not compressed at the Application Server and therefore confirm the instrumented files are the one used

#### Validate the application is using the static instrumented files and not files in memory <a href="#validate-the-application-is-using-the-static-instrumented-files-and-not-files-in-memory" id="validate-the-application-is-using-the-static-instrumented-files-and-not-files-in-memory"></a>

* Check your configuration is not using a In-Memory server (e.g. Webpack's server) and serves to your browser client the static files instrumented
* You can try a simple http server like [httpster ](https://www.npmjs.com/package/httpster)for a quick validation via a command similar to `httpster -p 8080 -d /home/somedir/public_html`

\ <br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sealights.io/knowledgebase/setup-and-configuration/troubleshooting-faq/node-javascript/js-no-front-end-coverage.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
