Skip to content

SPFx deloyment docs error #10463

@Neutrino-Sunset

Description

@Neutrino-Sunset

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

not applicable

Developer environment

Windows

What browser(s) / client(s) have you tested

  • 💥 Internet Explorer
  • 💥 Microsoft Edge
  • 💥 Google Chrome
  • 💥 FireFox
  • 💥 Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)

Additional environment details

Describe the bug / error

This page here states to package your solution using

gulp package-solution

And then goes on to state

The JavaScript files, CSS, and other assets are packaged in the package when the --ship option is used. In this tutorial, however, we'll first test deployment and capabilities by hosting JavaScript files from localhost.

But the page goes on to deploy the package by uploading the sppkg to the server, which then fails to work. I presume this is because the assets are not packaged because if I then repackage the solution using

gulp package-solution --ship

...then it works.

The documentation is confusing, and doesn't work. The deployment is not hosted by localhost at all.

Steps to reproduce

Follow the documentation.
Observe a non-working web part.

Expected behavior

The documentation should describe a working process.

Metadata

Metadata

Assignees

Labels

Needs: Author FeedbackAwaiting response from the original poster of the issue. Marked as stale if no activity for 7 days.sharepoint-developer-supportsharepoint-developer-supporttype:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions