Sp-dev-docs: "teams" folder is missing when project is created in a subfolder with 1.7.1 --plusbeta

Created on 8 Feb 2019  路  10Comments  路  Source: SharePoint/sp-dev-docs

Category

  • [ ] Question
  • [ ] Typo
  • [x] Bug
  • [ ] Additional article idea

Expected or Desired Behavior

When default scaffolding is created with the 1.7.1 --plusbeta version of the generator and select "Create a subfolder", the "teams" folder should be present as described in this article:
https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/using-web-part-as-ms-teams-tab

Observed Behavior

If you create the scaffolding with 1.7.1 --plusbeta, and select "Create a subfolder" the "teams" folder is absent.

Steps to Reproduce

1) Make sure SPFx v1.7.1 is installed
2) yo @microsoft/sharepoint --plusbeta --skip-install
3) During the initial setup wizart, select "Create a subfolder"
4) Observe that the teams folder is absent

spfx-general fixed bug-suspected

Most helpful comment

Good find... yes, I can confirm that when you select "create a subfolder with a solution name", it's like the --plusbeta is not respected. Will raise this with engineering too...

All 10 comments

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

What's your installed environment look like (_Node, NPM, Yeoman versions_)? Just did the same with v1.7.1 and it is present... so I can't repro...

image

There was an issue with v1.7.0 where it was adding the teams subfolder all the time, regardless if you used --plusbeta or not. The v1.7.1 fixed this so it should only appear when you include the beta flag.

Here is my environment:

image

I noticed you are on a mac and I am on windows. I don't have a mac handy to test if that's the difference?

And for comparison, I downgraded to v1.7.0 and ran the generator with --plusbeta again:

image

It's not a Mac / Windows thing... I have the same expected behavior on Windows:

image

So it's something else local to your machine I think... still can't repro your experience...

BTW... as I said in my last post, you will always see the teams folder get created in v1.7.0 because of a bug in the generator. Regardless of the presence of the --plusbeta switch, the v1.7.0 generator will ALWAYS add that folder. v1.7.1 fixed this behavior so you only see it when adding the flag.

Thanks for your help on this @andrewconnell! I think I know whats wrong. The teams folder is missing when I select "Create a subfolder" in the initial wizard. I also don't get the question which determines the isDomainIsolated setting
image

However, if I select "Use the current folder", I get the teams folder as well as the isDomainIsolated question:
image

Are you able to reproduce this?

Good find... yes, I can confirm that when you select "create a subfolder with a solution name", it's like the --plusbeta is not respected. Will raise this with engineering too...

Although the package.json does have all the 1.7.1-plusbeta versions of the SPFx packages. That's what I used to confirm that I wasn't going mad and was indeed using the --plusbeta flag.

Clearly a bug, which we'll be checking to fix for the 1.8 release. Thx @vman for reporting.

Fixed in 1.8, which is coming out soon.

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zerovectorspace picture zerovectorspace  路  3Comments

SteIvanov picture SteIvanov  路  3Comments

StfBauer picture StfBauer  路  3Comments

byrongits picture byrongits  路  3Comments

jonthenerd picture jonthenerd  路  3Comments