Skip to content

Commit

Permalink
Add require line for TsconfigPathsPlugin
Browse files Browse the repository at this point in the history
you also need const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin'); in main.js. Obvious, perhaps, but it could save someone a step if they miss it (like I did :-) )
  • Loading branch information
mann-david committed Nov 23, 2021
1 parent 282e716 commit 8a79e81
Showing 1 changed file with 3 additions and 1 deletion.
@@ -1,6 +1,8 @@
```js
// .storybook/main.js

const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');

module.exports = {
webpackFinal: async (config) => {
config.resolve.plugins = [
Expand All @@ -12,4 +14,4 @@ module.exports = {
return config;
},
};
```
```

0 comments on commit 8a79e81

Please sign in to comment.