-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
[Bug?] Uncaught (in promise) TypeError: error loading dynamically imported module... #583
Comments
|
no
More info:in Firefox, pressing F12, then Debugger and then click in one of those missing modules, ... on the rigth there's a "phanpy" link to see given (missed) module source:
I'm by no mean a web developer so excuse me if I'm posting non-relevant info. Thank you for phanpy and your work |
If it's 304, means the etag matched and server decided to return 304. You can try to force reload or clear browser cache then load. Once it's 200, check the headers again. In short, the problem is when There are 3 ways to solve this:
|
Thank you, I can not do it right now but I will try later.
exactly what I did. Please, how should I update to a new version? Currently I download .tar.gz file from releases, delete ( I'm glad it is just a personal problem but maybe this issue could help other people too. Thank you. |
@xmgz this is how I do it. I clone the repository, and I do a [1]
|
@xmgz in my opinion, most reliable and simple solution is (3) — |
I've made a reinstall and set nginx to with mixed results 😄 I still get random problems with some visual elements/assets not loading on first load, but forcing reload (ctrl+caps+r) I can reliably load them. At this point I think this is NOT a phanpy problem so thank you for your help and feel free to close this issue. I will keep debugging and learning following your tips. https://medium.com/heybooster/handling-of-dynamically-imported-module-errors-46b61dab4739 |
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
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
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: