pastelsky / bundlephobia

🏋️ Find out the cost of adding a new frontend dependency to your project
https://bundlephobia.com
MIT License
8.89k stars 221 forks source link

Navigating directly to a package link causes assets to not load #811

Closed JRJurman closed 1 year ago

JRJurman commented 1 year ago

Describe the bug

When navigating directly to a package link (e.g. https://bundlephobia.com/package/tram-lite), the site fails to load any css or javascript correctly:

screenshot of unstyled site, there is unformatted content, to the right there is a network panel with failing network requests

In the above screenshot you can see in the network panel that every js and css asset ends with .jsundefined or .cssundefined.

I'm seeing this behavior on all browsers (Chrome, Edge, Safari, Firefox) on Mac OS X.

To Reproduce

Navigate directly to a project page via pasting a URL, or clicking on a link, e.g. https://bundlephobia.com/package/tram-lite

Expected behavior

Site loads javascript and css correctly.

Note - the site still behaves as expected when starting from https://bundlephobia.com/

JRJurman commented 1 year ago

This issue appears to be resolved. If other people are experiencing it, I can re-open. Be sure to include similar details (OS, browser, etc)