Comments (4)
what was the error you got? please provide the stack trace
from storybook.
No errors in the console (the express app works), but the browser console shows:
http://localhost:9001/screen.css Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:9001/index.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:9001/screen.css Failed to load resource: the server responded with a status of 404 (Not Found)
This is because the static files middleware is taking precedence over the webpack middlewares and failing to load the built files.
from storybook.
Hmm. I can't reproduce this issue.
Could you send some way, I can reproduce this error.
from storybook.
Ah found the problem, my static file directory had an index.html which was being served by the static middleware. Renaming this file (to something other than index.html
) resolved the problem.
from storybook.
Related Issues (20)
- [Bug]: componente collapse with container-query in automated docs, mdx and storys at all HOT 1
- Mock next/navigation: redirect, revalidate, revalidatePath
- [Bug]: UI duplicate itself HOT 2
- [Bug]: HMR is broken for bundled CSS in Storybook v8
- [Bug]: `visual-tests-addon` Automigration script incorrectly lists package name in main.ts/js file HOT 2
- [Bug]: storybook V8.0.8 cli failed with Vue3+vite+yarn 4.1.1-workspace project[ Error: @chromatic-com/storybook tried to access @storybook/client-logger] HOT 1
- [Bug]: Cannot read properties of undefined (reading 'fonts') HOT 3
- [Bug]: Uncaught TypeError: Refresh.isLikelyComponentType is not a function HOT 3
- In @storybook/addon-docs react has been moved from peerDependencies to dependencies HOT 1
- [Bug]: Angular - Wrong detection of standalone components when inheriting
- RollupError: "X" is not exported by "../constants/dist/index.js", imported by "path/file.tsx".
- [Bug]: find-implicit-spies codemod doesn't exist HOT 2
- [Project SfC]: Preview - Error screen adjustments
- Could not resolve "./sb-preview/runtime.js" from "iframe.html"
- [Bug]: Cannot find module 'react-dom/client' with portable stories in React 17 projects. HOT 1
- [Bug]: next/font/local is not worked in storybook with vanilla Extract HOT 2
- [Project SfC]: Create the frontend to create a new story file from scratch
- [Bug]: The error message is that there is no default export. HOT 1
- [Bug]: Storybook Server 8.0.8 autodoc error - Element type is invalid
- [Bug]: `useParams` returns null in NextJS 14.2. Storybook 7 & 8 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from storybook.