Following the installation doc guide at: https://docs.emulsify.info/emulsify-drupal/emulsify-drupal
(with lando configuration at https://docs.emulsify.info/emulsify-drupal/emulsify-drupal/advanced-usag...)
I cannot run `npm run storybook`. And this is the message I got:
Failed to load preset: "/PROJECT_NAME/web/themes/custom/THEME_NAME/node_modules/@storybook/core/node_modules/@storybook/manager-webpack4/dist/cjs/presets/manager-preset.js"
ERR! Error: Cannot find module 'react/package.json'
ERR! Require stack:
ERR! - /PROJECT_NAME/web/themes/custom/THEME_NAME/node_modules/@storybook/core/node_modules/@storybook/ui/noop.js
ERR! at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
....
While I clone the repo from https://github.com/emulsify-ds/compound/tree/1.1.0
And `npm run develop` - which include the `npm run storybook` worked well.
Comments
Comment #2
thidd commentedComment #3
markie commentedI worked around this by adding react to my package.json.. `npm install react`
Comment #4
amazingrandoWe are moving all our efforts to Github to better manage the project. I've recreated this issue at https://github.com/emulsify-ds/emulsify-drupal/issues/266 for further discussion.