s-KaiNet / spfx-fast-serve

Improve your SharePoint Framework development flow by speeding up the "serve" command :rocket:
MIT License
133 stars 11 forks source link

spfx-fast-serve when used with node version 18.18.2 and below Specifications. #136

Closed khot29 closed 1 month ago

khot29 commented 1 month ago

Facing Error.

Screenshot 2024-05-28 155919

C:\Users\HUZAIF KHOT\OneDrive - MSFT\PowerApps & Sharepoint\Sharepoint\SPFx 28th of May Tuesday 2024>spfx-fast-serve ✔ It looks like your gulpfile.js was patched before, skipping.

⚠ Your dependency 'spfx-fast-serve-helpers' version '^1.18.12' will be replaced with version '~1.19.0' ⚠ Your npm 'serve' command will be replaced.

✔ Updated package.json.

ℹ Now install dependencies ('npm install') and execute 'npm run serve' afterwards.

√ Do you want to install the dependencies now? ("Enter" to install, "Esc" to finish without installing) (Y/n) · true

ℹ Executing 'npm install'...

npm error code ETARGET npm error notarget No matching version found for spfx-fast-serve-helpers@~1.19.0. npm error notarget In most cases you or one of your dependencies are requesting npm error notarget a package version that doesn't exist. npm error A complete log of this run can be found in: C:\Users\HUZAIF KHOT\AppData\Local\npm-cache_logs\2024-05-28T10_26_38_239Z-debug-0.log node:internal/process/promises:288 triggerUncaughtException(err, true / fromPromise /); ^

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "undefined".] { code: 'ERR_UNHANDLED_REJECTION' }

Node.js v18.18.2

after running spfx-fast-serve command

npm ERR! code ETARGET npm ERR! notarget No matching version found for spfx-fast-serve-helpers@~1.20.0. npm ERR! notarget In most cases you or one of your dependencies are requesting npm ERR! notarget a package version that doesn't exist.

khot29 commented 1 month ago

I have Created a project out of my Onedrive. It Worked!

ZzyzxIsAlreadyTaken commented 3 weeks ago

Did you somehow fix this? What do you mean by creating a project out of your onedrive? :D

khot29 commented 2 weeks ago

Yes the issue is Fixed Now. I Don't know why it was giving me Error when i have created project in my OneDrive local. Folder.

https://docs.google.com/document/d/1jdT4bgHcBDc-2rq_SjZ6IXrC85dw7mPDbUIJjSOVXpE/edit?usp=sharing