Volto update I read the doc and can't follow

I am follow this doc

"dependencies": {
"@plone/volto": "18.0.0-alpha.21",
"@plone/scripts": "^3.6.1"
}

I added

"@plone/volto": "18.22.0",

In /frontend/packages/volto-test/packages.json

and I make install, but the Volto is still 18.21.0

Maybe I am edit a wrong packages.json, which is the right path I need to edit?

Thx

to update the volto version in your cookieplone based project you have 2 options:

  • Create a new project and move your addon code there.
  • Modify the Mrs.developer.json to signal the new version, and then run make install.

I make modify in /frontend/mrs.developer.json to

{
"core": {
"output": "./",
"package": "@plone/volto"":"18.22.0",
"url": "git@github.com:plone/volto.git",
"https": "GitHub - plone/volto: React-based frontend for the Plone Content Management System",
"tag": "18.22.0",
"filterBlobs": true
}
}

But it still 18.21.0

Please help

Help us to help you.

If you provide such minimal information, we can't figure out what's going on. We are not overlords that know everything that happens on your computer. We don't even know whether you have run some other commands, and it looks like you just don't do anything apart from the commands we suggest.

Have you read the docs? What steps have you followed? Have you tried removing the core folder where Volto core is cloned? Have you tried going to the core folder and check with the git command which is the downloaded version? Where are you seeing that the Volto version hasn't changed? What is the output of the make install command after changing the Volto version in mrs.developer.json?

If you really want help, provide the most information you can, otherwise no one will be able to help and we will stop answering, and then you will be mad because nobody wants to help me.

2 Likes

Yes I have read the doc.

for my understanding about the doc /frontend/packages/volto-test/packages.json and make install the volto version not changed.

So I can ask in the community the

And you are kind to answer me.

So I go modify the /frontend/mrs.developer.json to

{
"core": {
"output": "./",
"package": "@plone/volto"":"18.22.0",
"url": "[git@github.com](mailto:git@github.com):plone/volto.git",
"https": "[GitHub - plone/volto: React-based frontend for the Plone Content Management System](https://github.com/plone/volto.git)",
"tag": "18.22.0",
"filterBlobs": true
}
}

Than make install

And the result is

Cloning core from https://github.com/plone/volto.git...

✓ cloned core at core

✓ update core to tag 18.21.0

Scope: all 20 workspace projects

Lockfile is up to date, resolution step is skipped

Packages: +2978
And the display after finish is still

It mean still 18.21.0, thats why I can ask help again.

Many thanks

@mactrash mrs.developer.json is for development. If you clone "core" ideally with the provided volto version that means its going to clone it for your dev setup wherever you want. Not as a library, that would reside in your node_modules. (the above step also creates a symlink to node_modules @plone/volto, but I'm not sure if that's still the case. )

Anyway, You can do 3 things:

  1. Check if you have @plone/volto pinned to something bad in resolutions field. However that's pretty unlikely.
  2. Do a pnpm why @plone/volto or better pnpm why @plone/volto@18.21.0 and inspect the result.
  3. Do a clean install again. make clean command.

It's clear that you are doing something wrong, because it reports that Volto 18.21.0 is being downloaded instead of the 18.22.0 that you say.

Remove the core folder, and run make install again.