Skip to content

Commit

Permalink
Fix module resolution issue
Browse files Browse the repository at this point in the history
  • Loading branch information
morgs32 committed Sep 5, 2017
1 parent d23c7e2 commit e3a7033
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/react-scripts/config/paths.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ module.exports = {
appIndexJs: resolveApp('src/index.js'),
asiagoPath: asiagoDirectory,
asiagoNodeModules: asiagoNodeModules,
ownNodeModules: resolveOwn('../node_modules'),
appPackageJson: resolveApp('package.json'),
appSrc: resolveApp('src'),
appPath: appDirectory,
Expand Down
7 changes: 4 additions & 3 deletions packages/react-scripts/config/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,11 @@ module.exports = {
// if there are any conflicts. This matches Node resolution mechanism.
// https://github.com/facebookincubator/create-react-app/issues/253
modules: [
paths.appPath,
path.resolve(paths.asiagoPath),
paths.asiagoNodeModules,
'node_modules',
paths.appNodeModules,
paths.asiagoNodeModules,
paths.appPath,
paths.asiagoPath,
].concat(
// It is guaranteed to exist because we tweak it in `env.js`
process.env.NODE_PATH.split(path.delimiter).filter(Boolean)
Expand Down

0 comments on commit e3a7033

Please sign in to comment.