Comments (5)
@adiun, Hi. I didn't see that error while fixing creevey to work with Vite. But I checked, that Creevey works in your monorepo project with vite and also it works on a fresh clean vite project.
I released 0.7.33 with those fixes. Please, check it out. And feel free to ask me if something goes wrong.
from creevey.
@adiun Hi, thanks for the issue. I made a feature for loading stories without webpack, but didn't test it with Vite. I have a flag useWebpackToExtractTests
in config which rules how to load stories. If you are using Storybook 6.3 and even 6.2 it should work well and Creevey shouldn't load webpack. It looks like a bug.
The flag is false
by default for Storybook >= 6.2 and true
for older versions. It's set here https://github.com/wKich/creevey/blob/ae3c6b712a8e41a7d3f4396b269d471c578d9408/src/server/config.ts#L54
from creevey.
I'm using webpack only to compile Creevey client UI bundle for npm package, that's why it listed in devDeps
from creevey.
Thank you @wKich! I will check it out. The issue I'm running into is that I'm trying to run creevey --extract
to create a stories.json for my storybook project (which I am using to publish the storybook) which hits this error. Have you tried that with Vite? I will give it a shot later today as well.
from creevey.
@adiun no I didn't. But I'm pretty sure if creevey starts tests without any errors, the extract will work as well, because it reuse same logic to get stories meta.
The one important issue that I found is Creevey doesn't work well with monorepos, I mean that Creevey work with only one storybook config at the time. So you need to have root storybook setup and the same for Creevey, or have to use Creevey per each package inside a monorepo like here adiun/vite-monorepo#1
from creevey.
Related Issues (20)
- Behaviour of waitForReady and delay HOT 1
- Browser specific delays for tests HOT 3
- failFast:true disables maxRetries config option HOT 2
- Using webkit/safari results in ERROR => UnknownCommandError: Unknown command: /wd/hub/session HOT 1
- maxRetries and non-existing screenshots HOT 1
- Unexpected story export "image": expected function, received "object". HOT 2
- `ssh2` vulnerable version through `docker-modem` HOT 1
- [Creevey:21879] ERROR => TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined HOT 3
- Storybook vite builder breaks creevey chrome after hot-reload
- Storybook 6.4.0 - TypeError: Cannot read properties of undefined (reading 'removeAllListeners') HOT 12
- Creevey with Docker Desktop alternatives HOT 1
- Testing Firefox focus state issues HOT 1
- Malicious code through dependency
- Typescript support
- Storybook 6.5 support, bundle with many chunks
- creevey with storybook 6.5
- Extract `metadata` object from story
- Getting the creevey server can't reach error
- Does not support storybook 7 HOT 2
- Storybook v8 ERR_PACKAGE_PATH_NOT_EXPORTED
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 creevey.