Open clarktozer opened 5 years ago
Note for repro:
This:
npm install @microsoft/sharepoint -g
Should be this:
npm install @microsoft/generator-sharepoint -g
Thanks, have updated.
I took a quick look today. This is going to be a fun one... 😊 Teams and SharePoint have rather inconsistent dependencies versions, whereas normally Rush tries to keep everything consistent across the monorepo. Also, both these projects have broken peer dependencies.
This is a great use case, though. I'll see if I can get it working and then share a branch.
Thanks. Yeah I tried playing around with different versions of gulp/gulp-cli to try force it to use the correct one, no real progress there. Broken peer dependencies get worse when adding various @SharePoint packages!
Hello,
Any progress?
Is this a feature or a bug?
Please describe the actual behavior. I'm trying to build two projects. One was scaffolded using the spfx yeoman generator, the other using the teams yeoman generator. They are not dependent on one another. The build fails with an error to do with the gulp package in the spfx project. SPFx projects and teams projects use different versions of gulp. If I add multiple spfx webparts without the teams project rush builds them all correctly. Is there anyway I can fix this so rush can build spfx and teams projects successfully?
If the issue is a bug, how can we reproduce it? Please provide detailed steps and include a GitHub branch if applicable. Your issue will get resolved faster if you can make it easy to investigate. Install rush, spfx and teams generators
Initialize a rush repo and then add two projects.
rush init
Add a spfx library component using the yeoman generatoryo @microsoft/sharepoint --skip-install
Add a teams app using the yeoman generatoryo teams --skip-install
Add projects to rush.json and run rush commands Add correct yarn version instead of pnpmWhat is the expected behavior? Builds projects successfully.
If this is a bug, please provide the tool version, Node.js version, and OS.
@microsoft/rush@5.16.1