<!-- To make it easier for us to help you — please follow the suggested format below. Before opening a new issue, please search existing issues. For general technical questions, contact me on [Twitter](http://twitter.com/natterstefan). --> # Bug Report ## Relevant information At the moment Storybook is not properly working as next-i18next depends on `fs`, which is not available in Storybook. ```bash ModuleNotFoundError: Module not found: Error: Can't resolve 'fs' in '.../nextjs-template/node_modules/next-i18next/dist/esm/config' ``` ### Possible Solutions - https://github.com/isaachinman/next-i18next/issues/1012#issuecomment-818042184 - https://github.com/isaachinman/next-i18next/issues/935#issuecomment-802001105 - https://gist.github.com/justincy/c1075650b1d5ba448c50eaf83cbb4ffe - https://github.com/fynncfchen/storybook-addon-i18next/issues/8#issuecomment-686630988 - https://github.com/Piepongwong/gatsby_nextjs_storybook_i18n_scaffolding/blob/5207d34210a7c6f76b86d91c5e74fbd9250c9610/.storybook/preview.js#L1 - https://github.com/i18next/react-i18next/blob/7cfab9746b3ccc6f833cd9c892e7c3c804944a5e/example/react/src/i18n.js#L6 - https://github.com/i18next/react-i18next/blob/7cfab9746b3ccc6f833cd9c892e7c3c804944a5e/example/react-typescript4.1/namespaces/src/i18n/config.ts#L13 ### References - https://github.com/isaachinman/next-i18next/issues/1012 - https://github.com/storybookjs/storybook/issues/4082#issuecomment-495370896 - https://github.com/storybookjs/storybook/issues/4082#issuecomment-818032557 - https://github.com/isaachinman/next-i18next/issues/324 - https://www.npmjs.com/package/storybook-addon-i18next
Bug Report
Relevant information
At the moment Storybook is not properly working as next-i18next depends on
fs, which is not available in Storybook.Possible Solutions
References