Jacob Overgaard
11/18/2024, 8:57 AMWarren Buckley
11/18/2024, 9:13 AMCodeSharePaul
11/18/2024, 10:00 AMJason
11/18/2024, 4:26 PMJason
11/18/2024, 4:26 PMJason
11/18/2024, 4:27 PMJason
11/18/2024, 4:28 PMUmbraco.Web.UI.Client
I can pull again.CodeSharePaul
11/18/2024, 4:42 PMLotte
11/18/2024, 5:19 PMUmbraco.Web.UI.Client
folder, as Jason said, to be able to pull. Then was getting build errors. Fixed by manually running npm ci
and npm run build
. Or perhaps restarting Rider, not entirely sure TBH but I got there!Jacob Overgaard
11/19/2024, 7:38 AM.gitmodules
file which removes the submodule: https://discord.com/channels/869656431308189746/882985025803530332/1304774877366059091Jacob Overgaard
11/19/2024, 7:39 AMCodeSharePaul
11/19/2024, 12:11 PMCodeSharePaul
11/19/2024, 12:19 PMJason
11/19/2024, 12:21 PMnpm run dev
and modify any necessary environment variables in your own .env.local file (copied from the main .env file).CodeSharePaul
11/19/2024, 12:22 PMCodeSharePaul
11/19/2024, 12:23 PMJason
11/19/2024, 12:24 PMCodeSharePaul
11/19/2024, 12:25 PMCodeSharePaul
11/19/2024, 12:25 PMJacob Overgaard
11/19/2024, 12:28 PMJason
11/19/2024, 12:30 PMCodeSharePaul
11/19/2024, 12:31 PMJacob Overgaard
11/19/2024, 12:32 PMJacob Overgaard
11/19/2024, 12:34 PMVITE_UMBRACO_API_URL
needs to be pointing to your Umbraco instance url.Jacob Overgaard
11/19/2024, 12:35 PMnpm run dev:mock
to mock all the API requests, which lets you quickly get to do UI developmentJason
11/19/2024, 12:37 PMJacob Overgaard
11/19/2024, 12:38 PMJacob Overgaard
11/19/2024, 12:39 PMVITE_UMBRACO_USE_MSW=on
in .env.local
and it will mock the responses as wellJacob Overgaard
11/19/2024, 12:41 PMJacob Overgaard
11/19/2024, 12:42 PMCodeSharePaul
11/19/2024, 1:22 PMJason
11/19/2024, 1:47 PM"Umbraco": {
"CMS": {
"Security":{
"BackOfficeHost": "http://localhost:5173",
"AuthorizeCallbackPathName": "/oauth_complete",
"AuthorizeCallbackLogoutPathName": "/logout",
"AuthorizeCallbackErrorPathName": "/error",
},
},
}
Jason
11/19/2024, 1:50 PMCodeSharePaul
11/19/2024, 1:56 PMCodeSharePaul
11/19/2024, 1:56 PMps1
# Copy this to .env.local and change what you want to test.
VITE_UMBRACO_USE_MSW=off # on = turns on MSW, off = disables all mock handlers
VITE_UMBRACO_API_URL=https://localhost:44339
VITE_UMBRACO_INSTALL_STATUS=running # running or must-install or must-upgrade
VITE_MSW_QUIET=off # on = turns off MSW console logs, off = turns on MSW console logs
VITE_UMBRACO_EXTENSION_MOCKS=off # on = turns on extension mocks, off = turns off extension mocks
Jason
11/19/2024, 1:58 PMCodeSharePaul
11/19/2024, 2:11 PMJacob Overgaard
11/19/2024, 3:05 PMCodeSharePaul
11/19/2024, 3:11 PMJacob Overgaard
11/19/2024, 3:11 PMCodeSharePaul
11/19/2024, 3:28 PMCodeSharePaul
11/19/2024, 3:35 PMJacob Overgaard
11/19/2024, 8:28 PMCodeSharePaul
11/20/2024, 9:01 AMJason
11/20/2024, 7:59 PMJason
11/20/2024, 8:26 PMCodeSharePaul
11/20/2024, 8:33 PMJacob Overgaard
11/21/2024, 7:43 AMWarren Buckley
11/22/2024, 3:22 PMWarren Buckley
11/22/2024, 3:25 PMbash
npm install
npm run build:for:static
npm run dev
Currently I get this error with the Mock Service Worker failing to boot up, seems to complain about mime type?!
Any thoughts anyone, or do I need to run some more combinations of npm run scripts?!
Is this documented anywhere in the repo for people wanting to contrib ?!
https://cdn.discordapp.com/attachments/1307993168842719294/1309540276330696745/image.png?ex=6741f3eb&is=6740a26b&hm=8a063d736ad3969327367a0a90a0572109c49d889a8a7c71846810f7119e8fd9&Warren Buckley
11/22/2024, 3:30 PMJason
11/22/2024, 3:49 PMJason
11/22/2024, 3:50 PMGET http://localhost:5173/umbraco/management/api/v1/server/status net::ERR_ABORTED 404 (Not Found)
Jason
11/22/2024, 3:50 PMJason
11/22/2024, 3:51 PMnpm i
and then npm run dev
Warren Buckley
11/22/2024, 3:55 PMWarren Buckley
11/22/2024, 3:55 PMWarren Buckley
11/22/2024, 3:55 PM3d3b5d53d686d387682f8dc503e3d5d14c65a566
Jacob Overgaard
11/25/2024, 8:44 AMnpx msw init public
in the Client folder, it should work, @Warren BuckleyJacob Overgaard
11/25/2024, 8:44 AMJacob Overgaard
11/25/2024, 8:45 AMWarren Buckley
11/25/2024, 9:05 AMWarren Buckley
11/25/2024, 9:33 AMnpm run dev
works all a-okay now with the mocked data from the service worker intercepting requestsWarren Buckley
11/25/2024, 9:35 AM