-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: doesn't exist at build time, it will remain unchanged to be resolved at runtime #22531
Comments
I am also getting this error when importing our stylesheet with a relative path in the preview.ts file |
Also getting this error. The build seems to work though... |
Anybody figured out how to fix this? |
This won't help everyone but for anyone using Rush like @lvchenyang - try redeclaring the "build" command in your command-line.json file and add the setting {
//this command is to override the existing build command to allow warnings in the build
"commandKind": "bulk",
"name": "build",
"summary": "Build",
"description": "This command will build projects",
"safeForSimultaneousRushProcesses": false,
"enableParallelism": true,
"ignoreDependencyOrder": false,
"ignoreMissingScript": true,
"allowWarningsInSuccessfulBuild": true
}, |
Yep!Add |
Still got this issue, any way to fix it? |
Any chances for this to be fixed? or way to silence it without allowing warnings in Rush? |
You might also get this issue if you are importing markdown files. To fix the issue, you need to change the import: -import changeLog from './changelog.md`
+import changeLog from './changelog.md?raw` |
does anybody know how to fix this problem? |
PS: I've tried to create my lib using rollup bundler and not vite bundler. it seems to work. No warning, no problem. |
This issue still exists in v8, the only workaround I found is to create an |
The bug occurs also on a fresh new install of storybook:
Then you will have the same error on the output. However, the reported files does exist on the final build folder:
And apparent issue are coming when you serve the static build. Here is the env info of the fresh install:
|
did any one resolve the error !! |
Still having the issue, any workaround? |
## Description - Update Storybook and related dependencies - Delete the stories for old widget components - Rewrite stories for new widgets(mdx to tsx) Note: local chromatic doesn't work because of this storybookjs/storybook#22531 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced new component stories across various packages to enhance design system documentation and user experience. - **Documentation** - Updated `.gitignore` files to optimize version control settings for Storybook and build logs. - **Refactor** - Modified UI element positioning in Storybook theming for improved layout management. - **Style** - Adjusted CSS properties for the `Select` component to ensure better visual presentation. - **Chores** - Updated dependencies and scripts in package configurations to maintain up-to-date development tools. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
I see this issue on Vite with Storybook v8.0.9 and deploying on Vercel |
Also having this issue, details: Info => Copying static files: /Users/me/Documents/GitHub/x/frontend/packages/y/node_modules/@storybook/manager/static at /Users/me/Documents/GitHub/x/frontend/packages/y/storybook-static/sb-common-assets
./sb-common-assets/fonts.css doesn't exist at build time, it will remain unchanged to be resolved at runtime Could it be because the structure of the project? And then our storybook is in Our root package uses gatsby with webpack. |
This comment was marked as off-topic.
This comment was marked as off-topic.
@soullivaneuh You have to run the Storybook build instead of the vite build. The issue still exists. I've just tested it. |
@valentinpalkovic Indeed! I stupidily ran Running Sorry for that. |
Describe the bug
Build output:
How to ignore this build error?
When I run
rush build
in gitlab CI/CD pipeline, this output will cause the pipeline job fail!To Reproduce
No response
System
Additional context
main.ts
The text was updated successfully, but these errors were encountered: