Skip to content

Library component not working? #4507

@JakeStanger

Description

@JakeStanger

Category

  • Question
  • Typo
  • Bug
  • Additional article idea

I'm not sure whether to put this down to lack of clarity in the documentation or a bug, but I've created and deployed a library component and...nothing seems to happen.

Here's what I've done:

  • Create a library component
  • Create a webpart
  • Add the library to the webpart dependencies, and link the library to the webpart
  • Build the library and deploy it tenant-wide
  • Build the webpart and deploy it, and add it to a page
  • Check the page requests, and notice there is no request sent to the component JS file (only to the webpart)
  • Make test changes to the library and redeploy the library as a sanity check
  • Re-test the app and notice the same results as before

Perhaps I am missing a step? My understanding is that deploying a library performs some magic which tells the webpart bundle to load the dependency from elsewhere, although this doesn't seem to be the case.

Sorry I haven't provided an awful lot of detail, I'm not really sure where to be looking. Any assistance on the matter is greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:spfxCategory: SharePoint Framework (not extensions related)type:questionQuestion... if answered, will be tagged as such.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions