-
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Bug Report
Relevant information
At the moment Storybook is not properly working as next-i18next depends on fs, which is not available in Storybook.
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
- Support for Storybook 6 fynncfchen/storybook-addon-i18next#8 (comment)
- 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
- How to enable storybook on node/server? storybookjs/storybook#4082 (comment)
- How to enable storybook on node/server? storybookjs/storybook#4082 (comment)
- https://github.com/isaachinman/next-i18next/issues/324
- https://www.npmjs.com/package/storybook-addon-i18next
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working