Jeremy Tenjo

Results 8 comments of Jeremy Tenjo

Still getting the error after adding `define` to the config ```js export default { stories: 'src/**/*.stories.{js,jsx,ts,tsx}', define: { process: {}, }, serve: { open: 'none', port: 61000, }, }```

Thanks @tajo . I will look into it and post any finding I have.

We need to define `process` in the build step in order for `node_modules/.vite/deps/next_image.js` to find it. I tried using the `NodeGlobalsPolyfillPlugin` plugin in `optimizeDeps` following this [tutorial](https://medium.com/@ftaioli/using-node-js-builtin-modules-with-vite-6194737c2cd2) but process is...

Thanks @joe-bell, that worked for me as well. To `unoptimized` next/image, I wrapped it in my own `Image.tsx` component. Replace `XSTORYBOOK_EXAMPLE_APP` with a Ladle environment variable. `Image.tsx` ```js import React...

@smatt989 have you had any luck fixing this issue?

Current dirty solution is to install `node-fetch` v2.6.1 - `npm i [email protected]`