Front-end folder reorganisation and Storybook integration for all components#706
Front-end folder reorganisation and Storybook integration for all components#706nole2701 wants to merge 8 commits into
Conversation
✅ Deploy Preview for dailp canceled.
|
nguyen-katie
left a comment
There was a problem hiding this comment.
Running yarn build on a Windows laptop yields this error:
failed to load config from /home/nguyen-katie/dailp-encoding/website/vite.config.ts
error during build:
Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@storybook/addon-vitest' imported from /home/nguyen-katie/dailp-encoding/website/vite.config.ts.timestamp-1776722631844-afe15fdb2a7a8.mjs
at Object.getPackageJSONURL (node:internal/modules/package_json_reader:314:9)
at packageResolve (node:internal/modules/esm/resolve:767:81)
at moduleResolve (node:internal/modules/esm/resolve:853:18)
at defaultResolve (node:internal/modules/esm/resolve:983:11)
at #cachedDefaultResolve (node:internal/modules/esm/loader:731:20)
at ModuleLoader.resolve (node:internal/modules/esm/loader:708:38)
at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:310:38)
at ModuleJob._link (node:internal/modules/esm/module_job:182:49)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ERROR: "build:vite" exited with 1.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
try doing |
After doing (Also, make sure to check on the merge conflicts in the header and footer) |
For these "column does not exist" issues clear the database with |
EDIT: Nevermind, fixed the error |
Summary
/websitedirectory to keep components in separate folders with their own CSS and Storybook files. The page files themselves are put into their own directory. Below is a simplified visualisation.Infrastructure Notes
website/.storybook/main.tsto prevent Cognito from crashing when initialising storybook.fromValue/neverfunctions to create urql mocks for all stories that need GraphQLthemeClasstodocument.bodyinwebsite/.storybook/preview.tsxso components that use Reakit Portals (like Sidebar) get their styling.