You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After creating a new AEM project, the SSR (React) build does not work on Adobe I/O after deployment via npm run deploy-ssr-ioruntime.
Locally the Adobe I/O SSR build also does not work unless a debugger is attached. I assume this is because code is proxied from the actual src folder and dependencies can be resolved properly in this case.
Expected Behaviour
Activation for the SSR action on Adobe I/O is successful and returns the rendered HTML.
Actual Behaviour
SSR Rendering does not work and following warning is shown in the error.log
22.06.2023 11:24:30.095 *WARN* [[0:0:0:0:0:0:0:1] [1687425868769] GET /content/wknd-spa-react/us/en/home.html HTTP/1.1] com.adobe.cq.remote.content.renderer.impl.servlet.RemoteContentRendererRequestHandlerServlet Remote error: code = 400 and message = {_ "code": "QueNTNEWFEurukDJiHCtb8DX3IcEUSxP",_ "error": "Response is not valid 'message/http'."_}
The activations on Adobe I/O show the following type of errors.
{
"result": {
"error": "Initialization has failed due to: Error: Cannot find module '/nodejsAction/TMmhc0Rf'\n at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)\n at Function.Module._load (internal/modules/cjs/loader.js:562:25)\n at Module.require (internal/modules/cjs/loader.js:692:17)\n at require (internal/modules/cjs/helpers.js:25:18)\n at eval (eval at <anonymous> (/nodejsAction/services/runner.js:76:49), <anonymous>:1:1)\n at /nodejsAction/services/runner.js:76:49"
},
"size": 506,
"status": "application error",
"success": false
}
Reproduce Scenario (including but not limited to)
Create a new project via aem-project-archetype with frontendModule=react, enableSSR=y
A fix for this known issue seems to be underway. As a workound the following was recommended by support which seems to do the trick.
a. delete the node modules folder by running rm -rf node_modules
b. delete package.lock.json file by running rm -f package-lock.json
c. clean up the NPM cache by running npm cache clean --force
d. install all packages again by running npm install
e. rename ./actions/common -> ./actions/zcommon, adapt manifest.yml, ./actions/ssr/index.js, ./script/postWebhook.js
After creating a new AEM project, the SSR (React) build does not work on Adobe I/O after deployment via
npm run deploy-ssr-ioruntime
.Locally the Adobe I/O SSR build also does not work unless a debugger is attached. I assume this is because code is proxied from the actual src folder and dependencies can be resolved properly in this case.
Expected Behaviour
Activation for the SSR action on Adobe I/O is successful and returns the rendered HTML.
Actual Behaviour
SSR Rendering does not work and following warning is shown in the error.log
The activations on Adobe I/O show the following type of errors.
Reproduce Scenario (including but not limited to)
Platform and Version
AEM Archetype Version 42
macOS Ventura 13.4
Node v16.20.1
NPM 8.19.4
Logs taken while reproducing problem
After
npm run start-ssr-ioruntime
the dist folder has the following structure.The text was updated successfully, but these errors were encountered: