Do you want to request a feature or report a bug?
Bug
What is the current behavior?
"start": "gulp" and yarn start does not work with Yarn PnP
If the current behavior is a bug, please provide the steps to reproduce.
Create a new project with Gulp 3.9.1 and set the start script to gulp, and create a basic gulpfile.
What is the expected behavior?
Gulp should start.
Please mention your node.js, yarn and operating system version.
node --version && yarn --version
v10.11.0
1.13.0-20181004.1524
Can you make a repro PR on the pnp-sample-app repository? I've tested with Gulp before so there's likely an environment factor somewhere
Here's the Gulpfile I used: https://github.com/yarnpkg/pnp-sample-app/blob/master/gulpfile.js
I can reproduce in pnp-sample-app,
yarn --pnpyarn gulp would report the errorBTW with .pnp.js generated by the yarn.js in the repository, I can run gulp successfully with yarn v1.12.1.
Given .yarnrc removed (so I can choose which yarn.js to use):
.pnp and .pnp.js generated by yarn.js packed in the repository (1.11.0-0), all versions of yarn I tested can run yarn gulp successfully..pnp and .pnp.js generated by yarn v1.12.1, either "installed globally" or downloaded as a single file and put in the repository, all versions fail to run yarn gulp"all versions":
Hope this helps.
Thanks! Will take a look
Will be fixed by #6623 馃憤
Thanks @arcanis
I see that your PR has been merged. Do you know if there is going to be a patch version bump of yarn to 1.12.2 that includes this? We just updated our yarn version today and this broke our builds.
Hey @brianespinosa ! There are a few other fixes I'd prefer to land before releasing the 1.12.2 (ETA ~ a week, I'd say), but in the meantime you can use our nightly build, which already includes it 馃檪
Would that work for you?
@arcanis ~a week should be fine. I just updated the config in our package.json telling it to not use pnp for now and everything is fine again. I can give it another shot when the patch lands. Thanks again!
@arcanis I just got around to testing this again. I am now running yarn 1.13.0 and when I run yarn gulp myCommand I get a message:
[11:40:52] Local gulp not found in ~/myProject
[11:40:52] Try running: npm install gulp
Ah! The trick here was to delete the old yarn.lock file and get an install from scratch. Now it does actually work. Thanks @arcanis!
same here
Most helpful comment
Will be fixed by #6623 馃憤