Comments (1)
Yes, I appear to have the same problem when I try to use a dependency that uses process.env
. For example, when a dependency uses the util
-package then it complains about https://github.com/browserify/node-util/blob/master/util.js#L109
When you have vite.config.ts
-file like below it still fails, feels like it doesn't get used by Storybook v8:
/// <reference types="vitest" />
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
export default defineConfig({
define: {
"process.env": process.env,
},
plugins: [react()],
css: { postcss: { plugins: [] } },
test: {
environment: "jsdom",
setupFiles: ["setupTests.ts"],
restoreMocks: true,
coverage: {
provider: "v8",
all: true,
},
},
});
from storybook.
Related Issues (20)
- [Bug]: Backgrounds no longer working with Angular and MDX HOT 1
- [Bug]: Cleanup logs during storybook init HOT 6
- [Bug]: Angular 18 Library: Missing documentations generated by compodoc within a Angular Library project setup HOT 1
- [Bug]: Component does not lose focus under specific circumstances (vuetify)
- [Bug]: Storybook builds twice on launch HOT 13
- [Bug]: Tailwind CSS Styles Not Applying in Next.js Application
- Make chromatic (firefox) repro for user event issues
- [Bug]: Angular outputPath object not supported (TypeError [ERR_INVALID_ARG_TYPE]: The "paths[1]" argument must be of type string.)
- [Bug]: Storybook installs, dies. HOT 2
- [Bug]: Support bun as a package manager HOT 5
- [Tracking]: Onboarding V2 HOT 1
- [Documentation]: Vite's `build` options are silently ignored HOT 1
- [Bug]: `BrandImage` resizes itself in dark theme when resizing sidebar
- Upgrade tsup to 8 HOT 1
- [Documentation]: Add documentation for manual storybook setup without `npx storybook init` HOT 2
- [Bug]: infinite paths on Add a new story: ENAMETOOLONG. Function unavailable HOT 5
- [Bug]: Getting signal SIGSEGV when building Next.js with Nx HOT 2
- [Bug]: I'll guide you through troubleshooting the issue with installing Storybook. HOT 8
- [Bug]: After pressing the "Reset" button, the object editor adds new object properties - ones that would give compilation errors when trying to change them using TS code
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.