Vite can't parse "storybook-react-i18next" dependence on "storybook-i18n"
And In preview.js
module.exports = require("./dist/cjs/preset/preview");
So It throw an error ReferenceError: require is not defined
And This code at const getProjectAnnotations = async () =>
How should I do
Yes, I think this bug needs to be fixed in these libraries. They're not 100 % ESM-compatible, it appears. One could possibly do some trickery with optimizeDeps, I'm not sure...
Yes, I think this bug needs to be fixed in these libraries. They're not 100 % ESM-compatible, it appears. One could possibly do some trickery with optimizeDeps, I'm not sure...
Yeah, I have no idea about optimizeDeps with ESM-compatible,can you give me some example...
Did anyone find a solution or workaround?