Closed binfouzan closed 2 years ago
Thank you for contacting us! Any issue or feedback from you is quite important to us. We will do our best to fully respond to your issue as soon as possible. Sometimes additional investigations may be needed, we will usually get back to you within 2 days by adding comments to this issue. Please stay tuned.
Hi @binfouzan, it timed out to execute the 'yo @microsoft/sharepoint' command to scaffold spfx project from the error stack. The timeout is set to be 120s and it takes less than 10s for most of cases on my side. Can you help confirm whether it's reproducible on your side?
hi @HuihuiWu-Microsoft, I found out that I have spfx 1.12 and teamsfx installed globally, I had to uninstall both. after that, I was able to scaffold the spfx project but when I run it, it give me an error "something went wrong"
I am using osx, I had to downgrade to teams tool kit 3.6.1
hi @HuihuiWu-Microsoft, I found out that I have spfx 1.12 and teamsfx installed globally, I had to uninstall both. after that, I was able to scaffold the spfx project but when I run it, it give me an error "something went wrong"
I am using osx, I had to downgrade to teams tool kit 3.6.1
Teams Toolkit will not install spfx globally, it will be installed under HOME/.fx locally and use locally installed version(spfx v1.14.0) for scaffolding. So it doesn't matter what the global version is. Could you give more details about the error "something went wrong"?
I am receiving this error now:
Error Loading Debug manifests Error loading debug script.Ensure the server is running and the "debugeManifestsFile" parameter URL is correct.
Error: Script error for: https://localhost:4321/temp/manifests.js http://requirejs.org/docs/errors.html#scripterror
I am receiving this error know:
Error Loading Debug manifests Error loading debug script.Ensure the server is running and the "debugeManifestsFile" parameter URL is correct.
Error: Script error for: https://localhost:4321/temp/manifests.js http://requirejs.org/docs/errors.html#scripterror
@binfouzan This error should happen when local debugging. So you've scaffolded spfx project successfully, right?
For this error, did you meet the issue while debugging hosted workbench? Please check whether gulp serve runs successfully. It would be better if you can attach a screenshot.
yes, I scaffolded spfx project. no, I meet the issue while debugging teams workbench
debugging teams wor
Can you help check whether gulp serve is running successfully while you do Teams workbench debugging? Is this issue reproducible?
i am attaching a screenshot
this is when I am debugging in Teams workbench:
and this when I am debugging in hosted workbench:
when I run gulp in the project directory: % pwd /Users/xxxxxx/source/MSTeams/HelloWorld/SPFx % gulp --tasks zsh: command not found: gulp % gulp trust-dev-cert zsh: command not found: gulp
Hi @binfouzan, I'd like to confirm with you which Teams Toolkit version you're using to scaffold this project (You said you have to downgrade to v3.6.1 to scaffold) and which version you're using to do debugging?
hi @HuihuiWu-Microsoft I upgraded again to 3.7.0 so i can follow up with you
and this is what I have installed globally: /Users/xxxxx/.nvm/versions/node/v14.18.0/lib ├── create-react-app@5.0.0 ├── npm@8.0.0 ├── to@0.2.9 └── update@0.7.4
and this is node and npm version : % node --version v14.18.0 % npm --version 8.0.0
Hi @HuihuiWu-Microsoft
I found this error in the debugging console when debugging on the host workbench (on Edge)
Failed to load debug manifests: Error: Script error for: https://localhost:4321/temp/manifests.js
so I opened a new tab and load https://localhost:4321/temp/manifests.js manually , and I can see the sample web part
but when I try debugging with the host workbench on chrome ( after removing all globally installed packages) it worked without loading the manifests file manually
Hi @binfouzan , I'm trying to summarize the issues you have met: For hosted workbench debugging:
Hi @HuihuiWu-Microsoft i was able to get it to work with the following steps :
i only need to load the manifest file once.
Hi @binfouzan , I'll close this issue since you get it working now. Suggest you to use officially supported versions to avoid any unexpected issues.
Exec command: "yo @ --skip-install true --component-type webpart --component-name TL --framework react --solution-name TimeAndLabor --environment spo --skip-feature-deployment true --is-domain-isolated false" timeout, 120000 ms
stack: SPFxScaffoldError: Exec command: "yo @ --skip-install true --component-type webpart --component-name TL --framework react --solution-name TimeAndLabor --environment spo --skip-feature-deployment true --is-domain-isolated false" timeout, 120000 ms
at Object.ScaffoldError (:2:6481412)
at SPFxPluginImpl.postScaffold (:2:6501266)
at SpfxPlugin.runWithErrorHandling (:2:6488168)
at SpfxPlugin.postScaffold (:2:6487396)
at Object.scaffoldSourceCodeAdapter (:2:6607383)
at SpfxPluginV2.scaffoldSourceCode (:2:6524327)
at TeamsAppSolutionV2.scaffoldSourceCode (:2:6979727)
at FxCore.createProjectV2 (:2:5129245)
at FxCore. (:2:5250167)
at FxCore.exports.ProjectSettingsWriterMW (:2:5304764)
at FxCore.exports.ContextInjectorMW (:2:5238494)
at FxCore.exports.QuestionModelMW (:2:5310976)
at FxCore.exports.ErrorHandlerMW (:2:5253291)