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

Use of DOMNodeInserted Listener #56

Open
mcst opened this issue Aug 15, 2024 · 2 comments
Open

Use of DOMNodeInserted Listener #56

mcst opened this issue Aug 15, 2024 · 2 comments

Comments

@mcst
Copy link

mcst commented Aug 15, 2024

Since Chrome Version 127.0.6533.100 (or earlier) the DOMNodeInserted listener is deprecated and no longer triggers an event.

The clientlib.min.js file generated by aem-clientlib-generator uses it and the project files are no longer available in the chrome sources:

document.body.addEventListener("DOMNodeInserted", (function() {
return x(t)
}

@stefanseifert
Copy link
Member

are you sure aem-clientlib-generator is the source of this problem?

aem-clientlib-generator is only responsibly for transforming the source files generated by your project into a AEM-compatible clientlib format, but does not change or generate any additional logic in it.

creating the "min" version of the resulting library is done by the AEM HTML Library Manager (which may use -depending on your AEM version - quite outdated versions of the Google Closure Compiler - GCC).

@mcst
Copy link
Author

mcst commented Aug 15, 2024

Thank you very much for this information. We are using AEM as a Cloud Service and have AEM updated every two weeks.

The index.html has referenced the clientlib-loader...min.js file, which in turn should import the static files of the react app. The folder and the files that should be included are not available. How is this min.js file generated, because the only thing that happens on the client side is the call of the clientlib-generator. The files generated there are then copied to the web server.
image

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

2 participants