storybookjs / aem

Adobe Experience Manager Storybook app with events, knobs, docs, addons, and more
https://storybook-aem.netlify.com/
MIT License
33 stars 24 forks source link

Webpack error on running Storybook in AEM project #89

Open madoni opened 4 years ago

madoni commented 4 years ago

Hi there, Thanks for all the support so far! I have set up a basic AEM project generated from AEM maven archetype (23). In addition, I have installed the @storybook/aem node module and configured storybook with a single story. Here's the repo: https://github.com/madoni/storybook-aem To replicate the error:

  1. Clone the repo
  2. Run npm install from within the ui.frontend directory
  3. Run npm run storybook

This is gist of the error: Module not found: Error: Can't resolve '@storybook/aem'

Please let me know if you need further details.

tripodsan commented 4 years ago

I get a different error:

ERROR in ./.storybook/generated-entry.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: Cannot find module '@babel/preset-typescript' from '~/codez/storybook/support/madoni/ui.frontend'
tripodsan commented 4 years ago

a temporary workaround is to add a package.json to ui.apps and add the @storyboob/aem there, too.