-
-
Notifications
You must be signed in to change notification settings - Fork 85
Inspect is not a function, Inspect.default is #100
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
Comments
vite + vanilla-ts in SB: https://stackblitz.com/edit/vitejs-vite-pyuf7x |
ok, problems with CJS, we should patch cjs/d.cts: https://stackblitz.com/edit/vitejs-vite-9ncgh5?file=main.js |
@effulgentsia you can fix it adding
I'll try to fix the problem here. |
fixed: SB repo using Vite 5 CJS warning there: The CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details. |
I somehow am getting the same error in a Storybook 8 vite project. I have
I added the plugin like so: import Inspect from 'vite-plugin-inspect';
const config = {
// ...
viteFinal(config) {
config.plugins.unshift(Inspect());
return config;
},
}; |
Check if you can rename Storybook config file to |
As you can see from the stacktrace, the file already is named I just tried to delete the build cache and rebuild the whole thing again, and the |
We've moved the package to ESM first, since the package is using default export for the plugin, CJS and ESM don't play well together, we need to update the readme file to include the
This plugin doesn't start a dev server, it just add a middleware to it (sirv iirc) to serve the client ui under |
Describe the bug
The README says that
should work. When I do that, I get:
The following works but doesn't match the README:
Reproduction
See the description
System Info
Used Package Manager
bun
Validations
The text was updated successfully, but these errors were encountered: