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

After refresh the browser and cache, got $injector:nomod #8354

Open
wangf1122 opened this issue Sep 6, 2024 · 4 comments
Open

After refresh the browser and cache, got $injector:nomod #8354

wangf1122 opened this issue Sep 6, 2024 · 4 comments

Comments

@wangf1122
Copy link
Collaborator

wangf1122 commented Sep 6, 2024

After new installation at localhost and refresh all browser localhost content. I got error like and page cannot be loaded

image

This happens only when build with -Denv=prod. So I wonder if the angular dependency of the router is not setup correctly?

@josegar74
Copy link
Member

@wangf1122 can you add in the url the parameter ?debug to check which line is failing in the non minimised code?

@wangf1122
Copy link
Collaborator Author

@josegar74

It was my IDE issue. Nothing wrong with the Angular dependencies. I have removed all temp Tomcat files from my IDE and made a maven clean install. Thing started to cache back and working. So the previous cached thing in the Tomcat was causing it. But it's working now. Thank you

@wangf1122 wangf1122 reopened this Sep 6, 2024
@wangf1122
Copy link
Collaborator Author

@josegar74

Sorry. I have to reopen the issue. I found only partially working. The admin tool and setting page is back. But the create metadata and edit board page still not working.

I have created a new postgre database which is a brand new db, I clean installed the project, I clear all possible cache from the IDE.

As for the parameter of debug. Where should I add it to?

Here is my local url looks like
http://localhost:8080/catalogue/srv/eng/catalog.edit#/create

Error from the Chrome/Edge debug console:

Uncaught Error: [$injector:nomod] http://errors.angularjs.org/1.8.2/$injector/nomod?p0=gn_editor
at lib.js?v=67ca7580b20d82ba68d1bf4908b06dd4a446db9d:21:168
at lib.js?v=67ca7580b20d82ba68d1bf4908b06dd4a446db9d:40:503
at b (lib.js?v=67ca7580b20d82ba68d1bf4908b06dd4a446db9d:40:25)
at Object.module (lib.js?v=67ca7580b20d82ba68d1bf4908b06dd4a446db9d:40:277)
at catalog.edit:73:28
(anonymous) @ lib.js?v=67ca7580b20d82ba68d1bf4908b06dd4a446db9d:21
(anonymous) @ lib.js?v=67ca7580b20d82ba68d1bf4908b06dd4a446db9d:40
b @ lib.js?v=67ca7580b20d82ba68d1bf4908b06dd4a446db9d:40
(anonymous) @ lib.js?v=67ca7580b20d82ba68d1bf4908b06dd4a446db9d:40
(anonymous) @ catalog.edit:73
lib.js?v=67ca7580b20d82ba68d1bf4908b06dd4a446db9d:21 Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.8.2/$injector/modulerr?p0=gn_editor&p1=Error%3A%20%5B%24injector%3Anomod%5D%20http%3A%2F%2Ferrors.angularjs.org%2F1.8.2%2F%24injector%2Fnomod%3Fp0%3Dgn_editor%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8080%2Fcatalogue%2Fstatic%2Flib.js%3Fv%3D67ca7580b20d82ba68d1bf4908b06dd4a446db9d%3A21%3A168%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8080%2Fcatalogue%2Fstatic%2Flib.js%3Fv%3D67ca7580b20d82ba68d1bf4908b06dd4a446db9d%3A40%3A503%0A%20%20%20%20at%20b%20(http%3A%2F%2Flocalhost%3A8080%2Fcatalogue%2Fstatic%2Flib.js%3Fv%3D67ca7580b20d82ba68d1bf4908b06dd4a446db9d%3A40%3A25)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8080%2Fcatalogue%2Fstatic%2Flib.js%3Fv%3D67ca7580b20d82ba68d1bf4908b06dd4a446db9d%3A40%3A277%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8080%2Fcatalogue%2Fstatic%2Flib.js%3Fv%3D67ca7580b20d82ba68d1bf4908b06dd4a446db9d%3A57%3A201%0A%20%20%20%20at%20r%20(http%3A%2F%2Flocalhost%3A8080%2Fcatalogue%2Fstatic%2Flib.js%3Fv%3D67ca7580b20d82ba68d1bf4908b06dd4a446db9d%3A22%3A76)%0A%20%20%20%20at%20g%20(http%3A%2F%2Flocalhost%3A8080%2Fcatalogue%2Fstatic%2Flib.js%3Fv%3D67ca7580b20d82ba68d1bf4908b06dd4a446db9d%3A57%3A49)%0A%20%20%20%20at%20fb%20(http%3A%2F%2Flocalhost%3A8080%2Fcatalogue%2Fstatic%2Flib.js%3Fv%3D67ca7580b20d82ba68d1bf4908b06dd4a446db9d%3A61%3A153)%0A%20%20%20%20at%20c%20(http%3A%2F%2Flocalhost%3A8080%2Fcatalogue%2Fstatic%2Flib.js%3Fv%3D67ca7580b20d82ba68d1bf4908b06dd4a446db9d%3A36%3A57)%0A%20%20%20%20at%20Wc%20(http%3A%2F%2Flocalhost%3A8080%2Fcatalogue%2Fstatic%2Flib.js%3Fv%3D67ca7580b20d82ba68d1bf4908b06dd4a446db9d%3A36%3A370)
at lib.js?v=67ca7580b20d82ba68d1bf4908b06dd4a446db9d:21:168
at lib.js?v=67ca7580b20d82ba68d1bf4908b06dd4a446db9d:57:491
at r (lib.js?v=67ca7580b20d82ba68d1bf4908b06dd4a446db9d:22:76)
at g (lib.js?v=67ca7580b20d82ba68d1bf4908b06dd4a446db9d:57:49)
at fb (lib.js?v=67ca7580b20d82ba68d1bf4908b06dd4a446db9d:61:153)
at c (lib.js?v=67ca7580b20d82ba68d1bf4908b06dd4a446db9d:36:57)
at Wc (lib.js?v=67ca7580b20d82ba68d1bf4908b06dd4a446db9d:36:370)
at Ee (lib.js?v=67ca7580b20d82ba68d1bf4908b06dd4a446db9d:35:45)
at HTMLDocument. (lib.js?v=67ca7580b20d82ba68d1bf4908b06dd4a446db9d:365:117)
at i (lib.js?v=67ca7580b20d82ba68d1bf4908b06dd4a446db9d:7:27151)

@jahow
Copy link
Contributor

jahow commented Dec 5, 2024

Hi, you can try the following url: http://localhost:8080/catalogue/srv/eng/catalog.edit?debug#/create

I just tried opening the same page with a fresh install out of the main branch and could not reproduce the issue.

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

3 participants