Skip to content

Commit

Permalink
fix: blank screen on app start
Browse files Browse the repository at this point in the history
  • Loading branch information
apoorvsadana committed Aug 25, 2023
1 parent 8551d6f commit 296b455
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .erb/configs/webpack.config.base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import webpack from 'webpack';
import TsconfigPathsPlugins from 'tsconfig-paths-webpack-plugin';
import path from 'path';
import webpackPaths from './webpack.paths';
import { dependencies as externals } from '../../release/app/package.json';

Expand Down Expand Up @@ -47,6 +48,9 @@ const configuration: webpack.Configuration = {
modules: [webpackPaths.srcPath, 'node_modules'],
// There is no need to add aliases here, the paths in tsconfig get mirrored
plugins: [new TsconfigPathsPlugins()],
alias: {
react: path.resolve(`${webpackPaths.rootPath}/node_modules/react`),
},
},

plugins: [
Expand Down

0 comments on commit 296b455

Please sign in to comment.