cheeaun / cheeaun/phanpy

[Bug?] Uncaught (in promise) TypeError: error loading dynamically imported module...

Open
#583 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.5k
Forks
186
Avg merge
1d 36m
Merged PRs (30d)
11

Description

I bring this here in case anyone is having the same issue in their server

**Describe the bug**
A clear and concise description of what the bug is.

phanpy installed in my own server (nginx)

assets/icons do not load, but are accesible by browser when clicking on the link

example: domain.tld/assets/icons/filter-line-1KEfnWDm.js (up to 90 resources)

https://domain.tld/assets/icons/rocket-line-rZbVYYCZ.js

with the same **Uncaught (in promise) TypeError: error loading dynamically imported module:** warning/error

**Additional context**
Add any other context about the problem here.

I have turned off any adblocker, privacy feature (I know of) on my domain, **as I see in other projects with the same issue could be the root cause**. [Example with vitejs](https://github.com/vitejs/vite/issues/11804)

Ctrl+R (force update) "sometimes" resolves the issue (load these elements), not always.

assets are available (firefox loads and shows javascript code after clicking in the failed resource)

I **personally** suspect about some nginx config I'm missing. Even ./assets permissions/ownership on the server.

**To Reproduce**
Steps to reproduce the behavior:

open phanpy and icons and other visual elements are not present
open browser console (f12) and read the warnings

by the way, I can post/reply and do all expeted things, but visual elements are not visible.

**Expected behavior**

load that assets/icons

**Screenshots**

I think this image is lacking some elements, but *actions* are still available when mouse pointer is over them

![image](https://github.com/cheeaun/phanpy/assets/704948/1e5ea7d5-9836-4d17-9ad9-3062107e8b74)

**Desktop (please complete the following information):**

- latest firefox (tested with other browsers, same issue)
- latest phanpy
- nginx on debian 11

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.