-
Notifications
You must be signed in to change notification settings - Fork 1k
Description
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.