-
-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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]: error when starting storybook
using postcss-url
plugin to inline assets
#28635
Comments
** Disclaimer** This information might be inaccurate, due to it being generated automatically
These changes should address the issue with inlining assets using the References/code/lib/cli/src/automigrate/fixes/addon-postcss.ts
|
I'm facing a similar issue, but with Vite instead of Webpack [build:watch] [storybook] Sourcemap for "/virtual:/@storybook/builder-vite/setup-addons.js" points to missing source files
[build:watch] [storybook] C:\src\core\node_modules\storybook\bin\index.cjs:23
[build:watch] [storybook] throw error;
[build:watch] [storybook] ^
[build:watch] [storybook]
[build:watch] [storybook] TypeError [ERR_INVALID_ARG_VALUE]: The argument 'path' must be a string, Uint8Array, or URL without null bytes. Received 'C:\\src\\core\\\x00\\sb-common-assets\\nunito-sans-regular.woff2'
[build:watch] [storybook] at Object.access (node:fs:227:10)
[build:watch] [storybook] at C:\src\core\node_modules\postcss-url\src\lib\get-file.js:21:12
[build:watch] [storybook] at new Promise (<anonymous>)
[build:watch] [storybook] at existFileAsync (C:\src\core\node_modules\postcss-url\src\lib\get-file.js:20:12)
[build:watch] [storybook] at C:\src\core\node_modules\postcss-url\src\lib\get-file.js:32:20
[build:watch] [storybook] at Array.map (<anonymous>)
[build:watch] [storybook] at C:\src\core\node_modules\postcss-url\src\lib\get-file.js:31:36
[build:watch] [storybook] at new Promise (<anonymous>)
[build:watch] [storybook] at findExistsPath (C:\src\core\node_modules\postcss-url\src\lib\get-file.js:30:12)
[build:watch] [storybook] at getFile (C:\src\core\node_modules\postcss-url\src\lib\get-file.js:61:12)
[build:watch] [storybook] at processCopy (C:\src\core\node_modules\postcss-url\src\type\copy.js:57:12)
[build:watch] [storybook] at C:\src\core\node_modules\postcss-url\src\lib\decl-processor.js:67:9
[build:watch] [storybook] at process (C:\src\core\node_modules\postcss-url\src\lib\decl-processor.js:95:16)
[build:watch] [storybook] at replaceUrl (C:\src\core\node_modules\postcss-url\src\lib\decl-processor.js:111:25)
[build:watch] [storybook] at C:\src\core\node_modules\postcss-url\src\lib\decl-processor.js:139:35
[build:watch] [storybook] at String.replace (<anonymous>) {
[build:watch] [storybook] code: 'ERR_INVALID_ARG_VALUE'
[build:watch] [storybook] }
[build:watch] [storybook]
[build:watch] [storybook] Node.js v20.14.0
[build:watch] [storybook] npm run storybook exited with code 7 |
Describe the bug
When using
PostCSS
plugin (postcss-url) to inline assets using base64 encoding inurl()
error pops up duringstorybook
start:Feels like the issue has been introduced while doing #27110
Reproduction link
https://stackblitz.com/edit/github-txbnpe-gdeiug?file=postcss.config.js
Reproduction steps
PostCSS
configuration inpostcss.config.js
:storybook dev -p 6006
System
Additional context
No response
The text was updated successfully, but these errors were encountered: