GitHub user dosubot[bot] added a comment to the discussion: Deck.gl map change
style directly on dashboard
<!-- Answer -->
Your `console.log("hello")` is not printing because it is outside any function
or React lifecycle method—it runs only when the module is first loaded. If your
component is not being imported, mounted, or rendered, or if there is a
JavaScript error before this line, the log will not appear.
To debug:
1. Move your `console.log("hello")` inside the component function, for example,
at the top of the `forwardRef` function or inside a `useEffect`. This ensures
it runs when the component is rendered:
```js
export const DeckGLContainer = memo(
forwardRef((props: DeckGLContainerProps, ref) => {
console.log("hello from DeckGLContainer");
// ...rest of your code
})
);
```
2. Open your browser's developer console (F12 → Console tab) and check for any
JavaScript errors. Errors can prevent code execution, including your log
statement.
3. Make sure your component is actually being used in your app. If it is not
rendered anywhere, none of its code will run.
For your TileLayer: if it is not rendering, check the browser's Network tab for
failed tile requests (404, CORS, etc.), and ensure the `visible` property is
set to `true`. Try opening a tile URL directly in your browser to confirm it is
accessible.
If you want to see backend errors in Superset while running locally, enable
debug logging in your `superset/config.py`:
```python
import logging, os
LOG_LEVEL = logging.DEBUG
ENABLE_TIME_ROTATE = True
TIME_ROTATE_LOG_LEVEL = logging.DEBUG
FILENAME = os.path.join(DATA_DIR, "superset.log")
ROLLOVER = "midnight"
INTERVAL = 1
BACKUP_COUNT = 30
```
This will create a `superset.log` file with detailed error messages.
If you still do not see your log or the TileLayer, check for errors in the
browser console and network tab—these are the most direct clues to what is
going wrong.
<!-- Dosu Comment Footer -->
*To reply, just mention my name [@dosu](https://go.dosu.dev/dosubot).*
---
<sup>How did I do?
[Good](https://app.dosu.dev/response-feedback/9e67da5f-80f2-4c91-bc14-0484032d5b4c?feedback_type=great_response)
|
[Irrelevant](https://app.dosu.dev/response-feedback/9e67da5f-80f2-4c91-bc14-0484032d5b4c?feedback_type=irrelevant_answer)
|
[Incorrect](https://app.dosu.dev/response-feedback/9e67da5f-80f2-4c91-bc14-0484032d5b4c?feedback_type=incorrect_sources)
|
[Verbose](https://app.dosu.dev/response-feedback/9e67da5f-80f2-4c91-bc14-0484032d5b4c?feedback_type=too_verbose)
|
[Hallucination](https://app.dosu.dev/response-feedback/9e67da5f-80f2-4c91-bc14-0484032d5b4c?feedback_type=hallucination)
| [Report
🐛](https://app.dosu.dev/response-feedback/9e67da5f-80f2-4c91-bc14-0484032d5b4c?feedback_type=bug_report)
|
[Other](https://app.dosu.dev/response-feedback/9e67da5f-80f2-4c91-bc14-0484032d5b4c?feedback_type=other)</sup> [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/32149)
GitHub link:
https://github.com/apache/superset/discussions/32149#discussioncomment-13297995
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]