Skip to content

Commit dc3c3ed

Browse files
authored
Merge pull request #184 from devdoomari/fix-storybook-cannot-resolve-react-chartjs-2
fix for storybook cannot resolve module react-chartjs-2
2 parents 0e24dab + d6ac9ff commit dc3c3ed

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.storybook/webpack.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const path = require('path');
2+
3+
module.exports = {
4+
resolve: {
5+
alias: {
6+
'react-chartjs-2': path.join(__dirname, '../src'),
7+
},
8+
},
9+
}

0 commit comments

Comments
 (0)