Skip to content

Fix Travis builds - #558

Merged
joshaber merged 4 commits into
masterfrom
fix-something
Oct 26, 2016
Merged

joshaber merged 4 commits into
masterfrom
fix-something

Conversation

@joshaber

@joshaber joshaber commented Oct 26, 2016 •

Copy link
Copy Markdown
Contributor

The current build from Travis doesn't work:

Uncaught Error: Cannot find module "!!./../../node_modules/css-loader/index.js!./../../node_modules/sass-loader/index.js!./desktop.scss"

There were a few things going on:

  1. Our .travis.yml was configured to use the latest Node release. It turns out Node 7 just came out and node-sass doesn't support it yet. We need to pin to Node 6.
  2. Webpack ignores errors by default1 (sure, why not) so the app happily built despite not being able to compile our SASS.
  3. In order to fail the build on errors, we need to stop uglifying (see UglifyJs doesn't understand ES6 #487).
  4. The React type declaration is a continuing 🚚 🔥(Revert "Make SyntheticEvent.target generic, not SyntheticEvent.currentTarget." DefinitelyTyped/DefinitelyTyped#12239) so pin to the version we know is good.

1 In webpack's defense, @niik pointed this out a few weeks ago.

@joshaber joshaber changed the title [WIP] Fix production builds [WIP] Fix Travis builds Oct 26, 2016
@joshaber joshaber changed the title [WIP] Fix Travis builds Fix Travis builds Oct 26, 2016
@joshaber

joshaber commented Oct 26, 2016 •

Copy link
Copy Markdown
Contributor Author

I'm gonna #jolo this as the currently released build is broken, but feedback is still welcome.

@joshaber
joshaber merged commit d8e9f20 into master Oct 26, 2016
@joshaber
joshaber deleted the fix-something branch October 26, 2016 21:17
@shiftkey

Copy link
Copy Markdown
Member

Belated 👍 on these changes 🙏

mijiang168 pushed a commit to mijiang168/desktop that referenced this pull request Apr 22, 2022
mijiang168 pushed a commit to mijiang168/desktop that referenced this pull request Apr 22, 2022
yasuking0304 pushed a commit to yasuking0304/desktop that referenced this pull request Jan 22, 2023
yasuking0304 pushed a commit to yasuking0304/desktop that referenced this pull request Jan 22, 2023
yasuking0304 pushed a commit to yasuking0304/desktop that referenced this pull request Mar 9, 2023
yasuking0304 pushed a commit to yasuking0304/desktop that referenced this pull request Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants