You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.
Serve at https://host.nxt.blackbaud.com/@blackbaud-internal/blackbaud-skyux-lib-testing-serve.
I believe that the extra / causes the browser to try to re-direct to a subdomain and results in a "Sorry, we can't find that page" error page.
The library template doesn't have a skyuxconfig.json > name field so it always pulls from the package.json > name field for hosting the local spa. This works fine for package names that are valid URLs but for packages without a valid package name it will fail to serve until you add a skyuxconfig.json > name.
Fix
Temporary
When using @blackbaud/internal (or other similar sub-domain packages) you need to specify a name field in the skyuxconfig.json.
Found the fix after finding this 3 year old slack thread.
Long-term
@Blackbaud-BobbyEarl mentioned that we might want to URL Encode the "name" before we send it to host.
At the very least have builder log some error message explaining that the spa name is invalid and how to fix it.
The text was updated successfully, but these errors were encountered:
ThomasOrtiz
changed the title
"Sorry, we can't find that page" error when serving a library with a name including "/"
"Sorry, we can't find that page" error when serving a library with an invalid spa name
Aug 11, 2020
Description
Builder has issues when attempting to serve a library with a package name under a sub-domain.
skyux serve
https://host.nxt.blackbaud.com/{ name }
.The default template for libraries do not have a name field in the skyuxconfig so the defualt place to pull a new library's name is its package.json.
package.json name examples
skyux-lib-testing-serve
https://host.nxt.blackbaud.com/skyux-lib-testing-serve
@blackbaud-internal/blackbaud-skyux-lib-testing-serve
https://host.nxt.blackbaud.com/@blackbaud-internal/blackbaud-skyux-lib-testing-serve
./
causes the browser to try to re-direct to a subdomain and results in a "Sorry, we can't find that page" error page.The library template doesn't have a
skyuxconfig.json > name
field so it always pulls from thepackage.json > name
field for hosting the local spa. This works fine for package names that are valid URLs but for packages without a valid package name it will fail to serve until you add askyuxconfig.json > name
.Fix
Temporary
Long-term
The text was updated successfully, but these errors were encountered: