-
-
Notifications
You must be signed in to change notification settings - Fork 596
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
Volto 17.0.alpha14, cookiecutter-plone-starter: Error: Unable to find 'razzle-plugin-scss' or scss/razzle-plugin' #4920
Volto 17.0.alpha14, cookiecutter-plone-starter: Error: Unable to find 'razzle-plugin-scss' or scss/razzle-plugin' #4920
Comments
Hmm, I got the same error earlier today while trying volto 17 on a project that was previously using volto 16 -- but I was able to resolve it by updating razzle to 4.2.18 like it says in the upgrade guide. Probably needs a close look to see what is going wrong with the generator. Does |
@fredvd @sneridagh says an alpha of the generator is needed. Make sure you're setting the environment variable that was added here: collective/cookiecutter-plone-starter#87 (Maybe we can make the cookiecutter do that automatically based on the selected version, instead of needing an env var?) |
I started the project with Volto 17, but the cookiecutter / stable 3.6.x volto generator creates a package.json with razzle 4.2.17. I bumped that version to 4.2.18 manuall and reran yarn, but that didn't help, so maybe that's also what happens when upgrading Volto from 16 to 17. Would be nice indeed if cookiecutter could switch the Volto generator listed based on the Volto version. I didn't do that because I was almost at the end of the wizard and didn't want to restart the thing again for setting an env variable. :-) |
I tested once more, merged the PR and tested it right away after that. The volto generator version now correctly selects an alpha version as well if you pass in an alpha Volto version. If you stick with a 16.20 volto version the generator is using the released 6.3.1. Thank you @davisagli & reviewers !!
|
Created a new volto project with
When I use cookiecutter-plone-starter to set u a new Plone 6 project with the latest Volto 17.apha14, make install-frontend succeeds, but starting the frontend gives the traceback below. Running
yarn add razzle-plugin-scss --dev
solves the problem.Maybe I'm using the wrong volto_generator_version, it defaults to 6.3.1 and I cannot find any newer version for the alpha's. @sneridagh Am I indeed using a volto 16 generator version for the 17 alphas?
The text was updated successfully, but these errors were encountered: