Open roele opened 1 year ago
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.