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

Prevents exception on PnP #9951

Closed
wants to merge 2 commits into from
Closed

Prevents exception on PnP #9951

wants to merge 2 commits into from

Conversation

arcanis
Copy link
Contributor

@arcanis arcanis commented May 6, 2019

Q                       A
Fixed Issues? Fixes #8967
Patch: Bug Fix? Y
Major: Breaking Change? N
Minor: New Feature? N
Tests Added + Pass? n/a
Documentation PR Link n/a
Any Dependency Changes? N
License MIT

PnP environments throw semantic errors when a dependency cannot be found (in this case, it's because kexec isn't listed in @babel/node's dependency list, and thus it's not allowed to access it). This cause the error to be thrown instead of silently ignored.

The real fix would be to use optional peer dependencies to list the kexec peer dependency, but at the moment I'm looking for an uncontroversial hotfix to ship asap.

@nicolo-ribaudo
Copy link
Member

Could you run make fix?

@arcanis
Copy link
Contributor Author

arcanis commented May 9, 2019

@nicolo-ribaudo Just pushed the result of this command, but it seems to include a lot of changes. Is that expected?

@arcanis
Copy link
Contributor Author

arcanis commented May 23, 2019

Ping?

@nicolo-ribaudo
Copy link
Member

It looks that something went wrong and some test files have been deleted. Could you revert the last commit and run ./node_modules/.bin/eslint packages '*.js' --format=codeframe --fix instead?

@nicolo-ribaudo nicolo-ribaudo added the PR: Bug Fix 🐛 A type of pull request used for our changelog categories label May 23, 2019
@nicolo-ribaudo
Copy link
Member

Merged as d7801c6. Thank you!

nicolo-ribaudo pushed a commit that referenced this pull request Jun 1, 2019
@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Oct 3, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: node outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Bug Fix 🐛 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Yarn Plug'n'Play support for babel-node
2 participants