-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #157 - webpack error during build
(Hopefully) addresses the webpack error that happens when `yarn install` is run
- Loading branch information
Showing
3 changed files
with
4 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,7 @@ | ||
// @flow | ||
const fs = require('fs'); | ||
|
||
if (!/yarn\.js$/.test(process.env.npm_execpath || '')) { | ||
console.warn( | ||
"\u001b[33mYou don't seem to be using yarn. This could produce unexpected results.\u001b[39m" | ||
); | ||
} | ||
|
||
// We have experienced this issue for some time with this file and our setup not behaving. The | ||
// best solution discovered is to remove the file. Not great, but if it works, we'll do it. | ||
// TODO - Eventually figure out what's really going on, see if we can update the stack to resolve | ||
// this, or something else. | ||
const problemFile = './node_modules/node-gyp/lib/Find-VisualStudio.cs'; | ||
if (fs.existsSync(problemFile)) { | ||
fs.unlinkSync(problemFile); | ||
} |