-
Notifications
You must be signed in to change notification settings - Fork 8
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
Can't install from documentation #45
Comments
I'm also unable to install it with RUN yo @plone/volto \
plone-frontend \
--description "Plone frontend using Volto" \
--addon "@eeacms/volto-listing-block" \
--addon "volto-form-block" \
--skip-install \
--skip-workspaces \
--volto=${VOLTO_VERSION} \
--no-interactive
RUN cd plone-frontend \
&& yarn install \
&& yarn build #14 256.3 success Saved lockfile.
#14 256.3 $ yarn omelette && yarn patches
#14 256.5 yarn run v1.22.19
#14 256.5 $ if [ ! -d omelette ]; then ln -sf node_modules/@plone/volto omelette; fi
#14 256.6 Done in 0.05s.
#14 256.7 yarn run v1.22.19
#14 256.7 $ /bin/bash patches/patchit.sh > /dev/null 2>&1 ||true
#14 256.8 Done in 0.06s.
#14 256.8 Done in 256.27s.
#14 257.9 yarn run v1.22.19
#14 257.9 $ razzle build --noninteractive
#14 259.9 /build/plone-frontend/node_modules/@plone/scripts/node_modules/razzle/scripts/build.js:10
#14 259.9 throw err;
#14 259.9 ^
#14 259.9
#14 259.9 TypeError: Cannot destructure property 'include' of 'options.webpackOptions.babelRule' as it is undefined.
#14 259.9 at defaultModify (/build/plone-frontend/node_modules/@plone/volto/razzle.config.js:234:11)
#14 259.9 at modifyWebpackConfig (/build/plone-frontend/node_modules/@plone/volto/razzle.config.js:317:27)
#14 259.9 at /build/plone-frontend/node_modules/@plone/scripts/node_modules/razzle/config/createConfigAsync.js:1023:22
#14 259.9 error Command failed with exit code 1.
#14 259.9 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. |
@pnicolli Same here:
|
@pnicolli Also when using |
@pnicolli Ok, this is because of dependency: volto-subblocks. You need to merge and release:
Also update the dependency: We usually use |
Yeah, working on some testing myself these days, there are several things to put together as I am working on updating several add-ons. Regarding the dependency, I would suggest (and will probably also try asap) using peer dependencies in order to delegate version choice in the volto project, so you can also trigger warning for improper version choices. |
Meanwhile, I moved volto-subblocks to peer dependencies in the upgrade_to_volto16 branch, in order to continue testing. |
Released version 3.0.0 of this add-on with the aforementioned PRs released. Currently testing it myself, I'll keep you posted. |
From the first manual tests, version 3.0.0 of the add-on seems to be working. I'm currently testing plone 6.0.0b3 with volto 16.0.0-alpha.45. |
I don't understand why we're dealing with this problem. Of course, we also have yarn as a saboteur. I have found that the problem with the express middleware is that the webpack-dev-server depends on http-proxy-middleware 0.19, while Volto wants a 2.0.1 release. But hoisting and everything gets the wrong version in the top level. So in my project I pinned http-proxy-middleware in package.json:
|
I'm trying to install with
yarn add volto-form-block
on a cookiecutter installation and I get the following messageI then tried
yarn add volto-form-block -W
, followed bymake build-frontend
. When I runmake start-frontend
I get the following error:The text was updated successfully, but these errors were encountered: