-
Notifications
You must be signed in to change notification settings - Fork 275
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
Module not found: Can't resolve '@sitecore-cloudsdk/personalize/server' #1725
Comments
@bewards Hey, using a fresh "nextjs" + "nextjs-sxa" do you face the same problem? |
We are not using any of the personalize related functionality. I did a clean removal of node_modules and re-install (removed package-lock.json first), and the error remained. I see zero references to "personalize" in my project besides the peerDependencies noted above in the package-lock file. I will check a fresh nextjs + nextjs-sxa install next. |
Getting the same error with fresh install. I'm not using docker.
|
I believe I was able to get around this with the following steps:
|
@bewards, @ashishch-98 The required node version is >= 18. Which version do you use? Does it meet our rules? |
Current node version within Docker is 18.3.0 (I updated it from previously using v16). @ashishch-98 do you have any project references for "legacy-peer-deps"? If you do, try removing that flag and re-installing the node modules. |
@bewards I see. Potentially, it was your problem. But in any case our team will put some effort to explore this problem |
Thank you for providing the details. Unfortunately, the steps suggested by @bewards didn't work in my case. My Node version is Upon inspecting my Installing |
@ashishch-98 Thank you for the details! We will resolve/guide how to resolve this issue properly |
@illiakovalenko any updates?
|
This issue is being caused by the
|
Describe the Bug
After upgrading from 21.1.6 to 21.6.0 on a non xm-cloud Next.js application, we are receiving an error trying to load the rendering host stating that the '@sitecore-cloudsdk/personalize/server' module was not found:
package-lock.json
Maybe it has to do with adding some sitecore package dependencies that are personalize related in my package.json?
package.json
To Reproduce
npx create-sitecore-jss@v21.6.0
and set the templates to Next.js and SXAExpected Behavior
Expected behavior would be no rendering host errors regarding the personalize middleware for a non xm-cloud application.
Possible Fix
No response
Provide environment information
The text was updated successfully, but these errors were encountered: