-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Accept resolve alias in custom webpack config #44
Comments
Now we've enabled this. Use version |
@arunoda , ./storybook/webpack.config.js resolve block:
|
@hliyan have you resolved it? I'm having the same problem on linux. It does however work on mac without problems. |
@dziamid We had a bug in the latest storybook release. We patched and released a new version. Could you try the latest version (v2.15.1) |
Add title attribute for story list links
Add border-radius for comment form
Add google webmaster verification page
I'm using react-native-web and I want to share stories between web and native, so I have 2 separate configurations for storybook but 1 stories folder. In stories I need to import So I put this in react-native storybook webpack config: const defaultConfig = require('@storybook/react-native/dist/server/config/webpack.config')
.default
module.exports = Object.assign(defaultConfig, {
resolve: Object.assign(defaultConfig.resolve || {}, {
alias: Object.assign(
(defaultConfig.resolve && defaultConfig.resolve.alias) || {},
{
'@storybook/react': '@storybook/react-native',
},
),
}),
}) and I'm using But it still outputs the error, |
React native web project requires aliasing it to react-native to keep it like React native.
The text was updated successfully, but these errors were encountered: