Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source map for es-module-shims.min.js is incorrect #7686

Open
1 task done
nishikantparmariam opened this issue Feb 4, 2025 · 0 comments
Open
1 task done

Source map for es-module-shims.min.js is incorrect #7686

nishikantparmariam opened this issue Feb 4, 2025 · 0 comments

Comments

@nishikantparmariam
Copy link

ALL software version info

Software Version Info
panel==1.6.0
bokeh==3.6.2
param==2.2.0

Description of expected behavior and the observed behavior

There should not be any error in terminal upon opening Chrome Browser console when viewing a Panel app.

Complete, minimal, self-contained example code that reproduces the issue

A normal notebook.ipynb file having this content:

import panel as pn
pn.extension()
pn.Row('Hello World').servable()

Run it using:

panel serve notebook.ipynb --log-level debug --port 8000 --allow-websocket-origin <host>:8000

Go to <host>:8000 and then open Chrome Browser console and we would see below error in terminal:

404 GET /sm/731b32944388c6036aacf97199508abc904b39281fd18a3b471e5f96a2ad4b3d.map (10.215.23.98) 0.48ms

Upon debugging I found it comes from es-module-shims.min.js - check its last line.

Stack traceback and/or browser JavaScript console output

[20250204 05:52:25:183 viewable.py:563 DEBUG] Session 140000925635664 received events {'dark_mode': False, 'device_pixel_ratio': 1, 'language': 'en-US', 'webdriver': False, 'timezone': 'Asia/Calcutta', 'timezone_offset': -330, 'webgl': True}
[20250204 05:52:25:185 viewable.py:563 DEBUG] Session 140000925635664 finished processing events {'dark_mode': False, 'device_pixel_ratio': 1, 'language': 'en-US', 'webdriver': False, 'timezone': 'Asia/Calcutta', 'timezone_offset': -330, 'webgl': True}
[20250204 05:52:30:468 viewable.py:563 DEBUG] Session 140000863166800 received events {'dark_mode': False, 'device_pixel_ratio': 1, 'language': 'en-US', 'webdriver': False, 'timezone': 'Asia/Calcutta', 'timezone_offset': -330, 'webgl': True}
[20250204 05:52:30:470 viewable.py:563 DEBUG] Session 140000863166800 finished processing events {'dark_mode': False, 'device_pixel_ratio': 1, 'language': 'en-US', 'webdriver': False, 'timezone': 'Asia/Calcutta', 'timezone_offset': -330, 'webgl': True}
404 GET /sm/731b32944388c6036aacf97199508abc904b39281fd18a3b471e5f96a2ad4b3d.map (10.215.23.98) 0.48ms

Screenshots or screencasts of the bug in action

  • I may be interested in making a pull request to address this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant