plone / create-volto-app

Set up the Volto with a single command
MIT License
9 stars 3 forks source link

Starting app fails with "Error: Cannot find module '@babel/plugin-proposal-function-bind' " #18

Closed ksuess closed 4 years ago

ksuess commented 4 years ago

Steps to reproduce

Create volto app with

npx @plone/create-volto-app my-volto-app

This installs @plone/volto 4.0.0-alpha.18

Starting the app with

cd my-volto-app/
RAZZLE_API_PATH=http://localhost:8081/Plone PORT=3017 yarn start

fails with

Module build failed (from ./node_modules/babel-loader/lib/index.js)
Error: Cannot find module '@babel/plugin-proposal-function-bind' from '/Users/ksuess/Volto/hands-on-katja/my-volto-app'

The directories of node_modules seem to be different than in installation with earlier versions of @plone/volto image

ksuess commented 4 years ago

As soon as I downgrade to @plone/volto 4.0.0-alpha.15, the app is starting up fine.

ksuess commented 4 years ago

Dear Victor / @sneridagh It would be great to follow your volto hands-on training with the current pre release of volto. Would you please be so kind and have a look at create-volto-app. The app is starting throwing an errror. Your pre release of create-volto-app since I posted this issue does not change situation.

Thank you!

sneridagh commented 4 years ago

@ksuess I am aware of it, unfortunately I haven't time to take a look into it yet :( Sorry for the inconvenience... For now, try to use the training repo with the alpha version that I used when I wrote it. I will try to find some time to fix it.

/cc @robgietema

sneridagh commented 4 years ago

@ksuess https://github.com/collective/volto-hands-on-training

sneridagh commented 4 years ago

@ksuess I fixed it for now using a good known "old" yarn.lock and including it in the project template.

npx @plone/create-volto-app@alpha my-volto-project should work now.

However, I recommend that for the first steps, use the repo if you are doing the training, and specially use the api Plone buildout you'll find there because it has all the Plone requirements and dependencies to run Volto.

I've opened #19 to follow and fix the real problem of the issue.