Closed pbauer closed 1 month ago
It still works with Volto 18.0.0-alpha.20 but fails since Volto 18.0.0-alpha.21
From the Volto Release Notes:
Documentation
- Volto 18.0.0-alpha.21 and volto-update-deps documentation @sneridagh #5892
Which is rendered here:
Does that help?
@pbauer something should be wrong in the cookiecutter side /cc @ericof
There are tests in Volto core for testing that the build is ok. So what the generator outputs is correct. The cookiecutter template fiddles with some things from the generator output, so could be that it's something in need to be adapted.
@stevepiercy That is only needed for upgrading, not for newly created projects.
@pbauer confirmed, the generator alpha is correct and works well, to me, the cookiecutter is not enforcing the alpha version to be used when it's required.
Workaround:
npm -g install @plone/generator-volto
yo @plone/volto my-volto-app --description "test volto project" --skip-install --no-interactive --canary
replace the whole frontend folder with this one, keep the Makefile, maybe others
So it seems that the problem is that the template is not able of getting generator versions beyond @plone/generator-volto: "9.0.0-alpha.9"
:( probably a ordering bug...
It's getting that version at most, and that version is now obsolete.
@pbauer @stevepiercy https://github.com/collective/cookiecutter-plone-starter/pull/129
@pbauer @stevepiercy unfortunately that didn't make the trick, I got out of ideas: https://github.com/collective/cookiecutter-plone-starter/pull/130
I'm running into the same issue, but with an already existing Volto 18 project that I'm upgrading from 18.0.0a12 -> to a23. Am not running cookiecutter, just updating the versions and the running make install; make start.
I'm running into the same issue, but with an already existing Volto 18 project that I'm upgrading from 18.0.0a12 -> to a23. Am not running cookiecutter, just updating the versions and the running make install; make start.
After updating plone/scripts to 3.6.1 as well in my package.json . running yarn
and running yarn update-volto-deps
my project starts again. Lesson, check the upgrade guide when using alpha versions.
@pbauer @stevepiercy @fredvd it's fixed now, thanks to @ericof !
Starting a project
myproject
and use the latest Alpha (Volto 18.0.0-alpha.23, Volto Generator 9.0.0-alpha.9) fails withSteps to reproduce:
Installation seems to work:
But startup fails: