Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CI and upgrade dependencies #6137

Merged
merged 2 commits into from
Jan 6, 2019
Merged

Fix CI and upgrade dependencies #6137

merged 2 commits into from
Jan 6, 2019

Conversation

Timer
Copy link
Contributor

@Timer Timer commented Jan 6, 2019

No description provided.

@Timer Timer added this to the 2.1.4 milestone Jan 6, 2019
@Timer Timer merged commit 3e1dc99 into facebook:master Jan 6, 2019
@Timer Timer deleted the dep-cleanup branch January 6, 2019 18:13
@matthewdavidson
Copy link

matthewdavidson commented Jan 8, 2019

Hey @Timer, I maintain a fork of react-scripts called backpack-react-scripts and we are running into a similar issue that this PR has fixed on facebook/create-react-app.

./src/index.js
Error: [BABEL] /tmp/tmp.3m0bzS6x1k/test-app/src/index.js: Cannot find module '@babel/plugin-transform-react-jsx' (While processing: "/tmp/tmp.3m0bzS6x1k/test-app/node_modules/babel-preset-react-app/index.js$1")
    at Array.reduce (<anonymous>)

After rebasing on top of this commit I still get the issue - do you have any ideas on how to fix this? It seems that by simply modifying react-scripts dependencies is enough to upset the dependency graph enough to cause this error. See example commit and build.

@Timer
Copy link
Contributor Author

Timer commented Jan 8, 2019

Hey @matthewdavidson, can you try clearing your Travis cache?

@matthewdavidson
Copy link

I removed all caches and re ran the build. Same issue unfortunately. The build passes before I rebase, it's just as soon as I modify the dependencies in react-scripts...

@Timer
Copy link
Contributor Author

Timer commented Jan 8, 2019

Hmm, very interesting. We had narrowed this down to an issue with the Yarn nightlies and it was actually fixed by switching to Yarn stable.

Are you accidentally changing the build back to nightly?

@matthewdavidson
Copy link

Yeah when I seen the fix upstream I initially only included the change to switch back to Yarn stable. You can see the commit log here. The only major difference is the addition of some new dependencies...

@Timer
Copy link
Contributor Author

Timer commented Jan 8, 2019

Truth be told I don't know what's wrong. Maybe try filing an issue with Yarn if you can recreate this locally.

Sorry we can't be of more help.

@matthewdavidson
Copy link

Update: I remove the yarn.lock.cached file and commented out the code that copies it. That definitely improved things, see build.

Still the issue remains for two of the kitchensink-eject builds (node 8 & 10, but not node)

@arcanis
Copy link
Contributor

arcanis commented Jan 9, 2019

Fyi, this fixes (through the pnp-webpack-plugin upgrade) some compatibility issues between PnP and Windows (cf yarnpkg/yarn#6860 for more info) 🙂

Regarding your issue @matthewdavidson, if you can make a super-easy local repro I can give it a look, but otherwise I'm not aware of issues with packages not installed (I would assume it would have been raised before otherwise) 😕

mrmckeb pushed a commit to BeameryHQ/bmr-react-scripts that referenced this pull request Jan 10, 2019
* Upgrade a bunch of dependencies

* Turn off nightly Yarn
@Bnaya
Copy link

Bnaya commented Jan 11, 2019

When dose it scheduled to be released? :)

@lock lock bot locked and limited conversation to collaborators Jan 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants