sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

Deployment to Developer Site is not possible: Client Side Solutions cannot be used in this location

Open ghost opened this issue 9 years ago • 30 comments

Category

  • [ ] Question
  • [ ] Typo
  • [x] Bug
  • [x] Enhancement / Suggestion
  • [ ] Additional article idea

Expected or Desired Behavior

I cannot deploy my SPFx-App to a developer site ("Apps in Testing").

Observed Behavior

After uploading my .sppkg file to my developer site ("Apps in Testing") - the following error message appears: image

Consequently I cannot use my SPFx WebPart on a dev site.

Steps to Reproduce

  1. Create a developer site in your tenant
  2. Create a new SPFx WebPart: yo @microsoft/sharepoint
  3. Execute gulp bundle --ship
  4. Execute gulp package-solution --ship
  5. On your developer site, go to "Apps in Testing"
  6. Click "+ new app to deploy"
  7. Upload sharepoint\solution\spfx-helloworld.sppkg from your local filesystem

Thoughts

For me, this is a drawback as I cannot test different versions of the same SPFx WebPart on the same tenant.

This does not seem to be a supported use case at the moment. It is possible with SharePoint Add-Ins, but not SPFx WebParts. Is there another way to support this scenario? Any help is greatly appreciated.

Only option to date is, to add it to the global app catalog. But this is a high risk operation and I wouldn't do this for testing. We can use another tenant for testing - but there we won't have the same data as on our production tenant.

ghost avatar Apr 04 '17 15:04 ghost

+1 I too have the exact same problem.

mariotoffia avatar May 31 '17 22:05 mariotoffia

+1 also :) thanks for supporting this scenario. It would be appreciated 👍

patrick-blanc avatar Jun 08 '17 08:06 patrick-blanc

+1 I too have the exact same problem.

craghavendra21 avatar Jun 21 '17 09:06 craghavendra21

Thanks for the feedback, we are currently looking into ways to solve this.

GrahamMcMynn avatar Jun 21 '17 16:06 GrahamMcMynn

@mcmynn83 any news ?

patrick-blanc avatar Aug 07 '17 15:08 patrick-blanc

We're still actively working on the solution that we're going to offer for this scenario, as soon as we can make an announcement about timing and availability we'll be sure to do so.

JeremyKelley avatar Aug 07 '17 16:08 JeremyKelley

Hi, I have the same problem, any news about that ? Oh build an app with this Framework if you can't deploy, there is an other way ?

MarieLePanda avatar Aug 14 '17 22:08 MarieLePanda

I'm getting the same issue. Any news here?

michaelgalyon avatar Aug 17 '17 18:08 michaelgalyon

Same issue. Any news about the temp work-around?

jmardoy avatar Aug 18 '17 11:08 jmardoy

+1

steve1607 avatar Aug 19 '17 16:08 steve1607

The short answer is still under development. The longer answer is that we took a step back to make sure the solution we were going to deliver was going to meet all the needs of both developers and IT. As soon as I have timing I can announce we'll be sure to come back and let people know.

JeremyKelley avatar Aug 21 '17 18:08 JeremyKelley

As with good game development - it's done when it's done. I prefer quality and good design. Thank you for the feedback.

@jmardoy The temp work-around is, to use the global app catalog for deployment and do the testing on another tenant (not the productive one). In my current project we have several tenants.

ghost avatar Aug 22 '17 08:08 ghost

@MarieLePanda Yes, you can deploy your package to the global app catalog: https://dev.office.com/sharepoint/docs/spfx/web-parts/get-started/serve-your-web-part-in-a-sharepoint-page#deploy-the-helloworld-package-to-app-catalog

ghost avatar Aug 22 '17 08:08 ghost

How do we prevent "under development" client side apps deployed to global app catalog being available to all site collections?

AniruddhaBapat avatar Aug 24 '17 07:08 AniruddhaBapat

@AniruddhaBapat You can deploy SPFx WebParts either tenant wide (available to all site collections) or (by default) you have to add them to each site collection (after deployment to the global app catalog) in order for them to be available.

So yes, this can be prevented.

What is not supported at the moment, is that you have a productive version and a "under development" version running side-by-side on the same tenant. At the moment you need another tenant to do this.

ghost avatar Aug 31 '17 08:08 ghost

@michel-weber: I am sorry not able to understand. in my understanding is SPFx web-parts are required to be added to global app-catalog to be able to use it in any site. When it is added to global app catalog, it automatically becomes available to all sites and then can be added to any site. - Is there a way to prevent it, particularly when the web-parts are under-development?

AniruddhaBapat avatar Sep 01 '17 11:09 AniruddhaBapat

@AniruddhaBapat No, it is the other way around. By default it does not become available to all sites. If you want to enable it (available to all sites), follow the link i mentioned in my last answer.


You have two options:

  1. Normal deployment to app catalog --> You have to add the app to each site collection before you can add the WebPart.

  2. Tenant scoped deployment to app catalog --> You can add the app in all site collections in the same tenant.

Hope this finally clears it up.

ghost avatar Sep 01 '17 13:09 ghost

@AniruddhaBapat Yes right now, tenant scoped SPFx webparts deployed to the tenant app catalog are available to all site collections. In one of the recent PnP calls, it was mentioned that the product team is working on a Site Collection App Catalog which will allow us to deploy SPFx solutions to only specific site collections. Hopefully that will come out soon.

For now, we do all development related work in a separate "Development" tenant and only move to production when we are ready to deploy.

vman avatar Sep 01 '17 13:09 vman

Just to keep on the transparency train as I mentioned above we took a little bit of a step back from our initial implementation of the Site Collection App Catalog feature. In essence it will still be the same (you'll get the ability to have a local app catalog in a given site collection), but we're modifying the initial steps of how you get one of those and the controls that an admin has over where they can be used. It's still actively being worked on so it's not a feature we've forgotten about or delayed for any reason other than to make it a better feature. Thanks for your patience!

-Jeremy Kelley

JeremyKelley avatar Sep 01 '17 15:09 JeremyKelley

Well, my SPFx WebPart integrate authentication matters under Azure AD between client app on SPO and Azure Web API (througth ADAL JS). So testing on other development tenat isn't so easy. I'll try a development package on the Production App Catalog. If you can find better workaround for me, please tell me. Thanks everyone!

jmardoy avatar Sep 07 '17 10:09 jmardoy