Giter Site home page Giter Site logo

Comments (4)

davisagli avatar davisagli commented on June 24, 2024

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 yarn why razzle reveal multiple versions of razzle used in different places, by any chance?

from volto.

davisagli avatar davisagli commented on June 24, 2024

@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?)

from volto.

fredvd avatar fredvd commented on June 24, 2024

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. :-)

from volto.

fredvd avatar fredvd commented on June 24, 2024

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 !!

> cookiecutter https://github.com/collective/cookiecutter-plone-starter
You've downloaded /Users/fred/.cookiecutters/cookiecutter-plone-starter before. Is it okay to delete and re-download it? [yes]: yes
project_title [Project Title]: testsite2
project_slug [testsite2]:
description [A new project using Plone 6.]:
author [Plone Foundation]:
email [[email protected]]:
python_package_name [testsite2]:
Select python_test_framework:
1 - pytest
2 - unittest
Choose from 1, 2 [1]: 1
plone_version [6.0.6]:
volto_version [16.21.2]: 17.0.0-alpha.15
volto_generator_version [7.0.0-alpha.4]:

from volto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.