Ir para conteúdo

Recommended Posts

Pessoal estou tentando configurar o Debugger pro Chrome no VSCode ...para um projeto em 'React' e acredito estar fazendo algo errado..

 

1 ) Instalei a extensão do  Debugger do Chrome ..  

2 )  Editei o launch.json da seguinte forma

 

{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "chrome",
            "request": "launch",
            "name": "Launch Chrome",
            "url": "http://localhost:3000",
            "webRoot": "${workspaceFolder}"
        },
    ]
}

Porem quando vou rodar  F5  nada acontece ... o Chrome nao abre ....

 

Alguem teria alguma solução para isso ?

Compartilhar este post


Link para o post
Compartilhar em outros sites

Crie uma conta ou entre para comentar

Você precisar ser um membro para fazer um comentário

Criar uma conta

Crie uma nova conta em nossa comunidade. É fácil!

Crie uma nova conta

Entrar

Já tem uma conta? Faça o login.

Entrar Agora

  • Conteúdo Similar

    • Por Sherlock02
      Olá, pessoal. Não tenho certeza de que este é o fórum correto para essa pergunta, mas então.
      Eu sempre usei o Brackets como editor e estou tentando migrar para o VSCode.
      Só que eu não estou conseguindo descobrir como eu movo o bloco selecionado para a esquerda (recuo).
      Se eu pressiono Ctrl + [, ele move o bloco para a direita e está ok. Mas se eu tento trazer o bloco para a esquerda e pressiono Ctrl + ], ele abre uma nova página com o mesmo conteúdo.
       
      Como faço para mover o bloco para a esquerda?
       
    • Por Ferdz-Agencia-Digital
      Estou importando o NavLink do react-router-dom e montando o meu menu assim:
       
      <Nav navbar>{createLinks(routes)}</Nav>  
      No arquivo routes.js estou montando enviando conforme código abaixo:
       
      var routes = [ { path: "/index", name: "Dashboard", icon: "ni ni-tv-2 text-primary", component: Index, tipo: 1, layout: "/admin", }, { path: "/solicitacoes-trabalho", name: "Solicitações", icon: "ni ni-cart text-orange", tipo: 1, component: Solicitacoes, layout: "/admin", }, { path: "/Clientes", name: "Clientes", icon: "ni ni-single-02 text-orange", tipo: 2, component: Clientes, layout: "/admin", }, ]; export default routes;  
      Há como na exibição eu conseguir filtrar pelo tipo e só mostrar o que for do tipo 1 ?
    • Por Sapinn
      Opa galera, tudo blz? Recentemente comecei a estudar reactjs e para praticar estou fazendo o clone da Netiflix. Mas estou com um erro ao tentar chamar as imagens da API do TMDB o erro é: 
      TypeError: Cannot read properties of undefined (reading 'results')
       
      Já tentei refazer o código varias vezes mas não consegui resolver o problema. Vou postar o resto do código aqui
       
      App.js:
      import React, {useEffect, useState} from 'react'; import Tmdb from './Tmdb'; import MovieRow from './components/MovieRow'; const App = () =>{   const [movieList, setMovieList] = useState([]);   useEffect(()=>{     const loaddAll = async () =>{       let list = await Tmdb.getHomeList();       setMovieList(list)     }     loaddAll();   }, []);   return(       <div className="page">           <section className="lists">               {movieList.map((item, key)=>(                     <MovieRow key={key} title={item.title} items={item.items}/>               ))}                         </section>       </div>   ); } export default App; Consumir a api:
      Tmdb.js:
      const API_KEY = '******************************'; const API_BASE = 'https://api.themoviedb.org/3'; const basicFetch = async (endpoint) =>{     const req = await fetch(`${API_BASE}${endpoint}`)     const json = await req.json();     return json; } export default {     getHomeList: async () =>{         return [             {                 slug: 'originals',                 title: 'Originais da Netflix',                 items: await basicFetch(`/discover/tv?with_networks=213&language=pt-BR&api_key=${API_KEY}`)             },             {                 slug: 'trending',                 title: 'Recomendados para você',                 item: await basicFetch(`/trending/all/week?language=pt-BR&api_key=${API_KEY}`)             },             {                 slug: 'toprated',                 title: 'Em alta',                 item: await basicFetch(`/movie/top_rated?language=pt-BR&api_key=${API_KEY}`)             },             {                 slug: 'action',                 title: 'Ação',                 item: await basicFetch(`/discover/movie?width_genres=28&language-pt-BR&api_key=${API_KEY}`)             },             {                 slug: 'comedy',                 title: 'Comédia',                 item: await basicFetch(`/discover/movie?width_genres=35&language-pt-BR&api_key=${API_KEY}`)             },             {                 slug: 'horror',                 title: 'Terror',                 item: await basicFetch(`/discover/movie?width_genres=27&language-pt-BR&api_key=${API_KEY}`)             },             {                 slug: 'romance',                 title: 'Romance',                 item: await basicFetch(`/discover/movie?width_genres=10749&language-pt-BR&api_key=${API_KEY}`)             },             {                 slug: 'documentary',                 title: 'Documentários',                 item: await basicFetch(`/discover/movie?width_genres=99&language-pt-BR&api_key=${API_KEY}`)             },                     ]     } }  
       
      Componente para mostrar os filmes:
      MovieRow.js:
      import React from "react"; import './MovieRow.css'; export default ({title, items}) =>{         return (         <div>             <h2>{title}</h2>             <div className="moviewRow--listarea">                 {items.results.length > 0 && items.results.map((key, item)=>(                     <img src={`https://image.tmdb.org/t/p/w300${item.poster_path}`} />                 ))}             </div>         </div>     ); }  
      Se alguém pudesse me ajudar eu ficaria muito grato.
    • Por carol2906
      Boa tarde pessoal,
      Meu filho andou usando meu computador nos últimos dias para jogar e assistir a vídeos do youtube e acabou acredito eu pegando algum vírus que não permite o funcionamento correto do navegador Chrome, que é o que uso normalmente.
      O navegador abre mas a tela fica quase que totalmente em branco e na barra de endereço ao digitar o site que desejamos acessar ou buscar aparece uma imagem toda colorida e não nos deixa digitar.
       
      Segue o log do hijackthis:
      Logfile of HiJackThis Fork by Alex Dragokas v.2.9.0.26
      Platform:  x64 Windows 10 (Home Single Language), 10.0.19042.1052 (ReleaseId: 2009), Service Pack: 0
      Time:      10.06.2021 - 17:45 (UTC-03:00)
      Language:  OS: Portuguese (0x416). Display: Portuguese (0x416). Non-Unicode: Portuguese (0x416)
      Elevated:  Yes
      Ran by:    kaka2 (group: Administrator) on LAPTOP-NMHH9Q4T, FirstRun: yes
      Chrome:  91.0.4472.77
      Internet Explorer: 11.0.19041.1
      Default: "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --single-argument %1 (Google Chrome)
      Boot mode: Normal
      Running processes:
      Number | Path
         1  C:\HiJackThis.exe
         2  C:\Program Files (x86)\AnyDesk\AnyDesk.exe
         1  C:\Program Files (x86)\Common Files\Adobe\ARM\1.0\armsvc.exe
         1  C:\Program Files (x86)\Common Files\Protexis\License Service\PsiService_2.exe
         1  C:\Program Files (x86)\EPSON Software\Event Manager\EEventManager.exe
         1  C:\Program Files (x86)\Foxit Software\Foxit Reader\FoxitReaderUpdateService.exe
         1  C:\Program Files (x86)\Google\Update\1.3.36.82\GoogleCrashHandler.exe
         1  C:\Program Files (x86)\Google\Update\1.3.36.82\GoogleCrashHandler64.exe
         1  C:\Program Files (x86)\Internet Explorer\ielowutil.exe
         3  C:\Program Files (x86)\Internet Explorer\iexplore.exe
         1  C:\Program Files (x86)\Lenovo\VantageService\3.7.19.0\LenovoVantageService.exe
         1  C:\Program Files\Bonjour\mDNSResponder.exe
         1  C:\Program Files\Common Files\Protexis\License Service\PsiService_2.exe
         1  C:\Program Files\Common Files\microsoft shared\ClickToRun\OfficeClickToRun.exe
         2  C:\Program Files\Diebold\Warsaw\core.exe
         1  C:\Program Files\Dolby\Dolby DAX2\DAX2_API\DolbyDAX2API.exe
         1  C:\Program Files\EPSON\EpsonCustomerResearchParticipation\EPCP.exe
         1  C:\Program Files\Internet Explorer\iexplore.exe
         3  C:\Program Files\Realtek\Audio\HDA\RAVBg64.exe
         1  C:\Program Files\Realtek\Audio\HDA\RAVCpl64.exe
         1  C:\Program Files\Realtek\Audio\HDA\RtkAudioService64.exe
         1  C:\Program Files\SafeNet\Authentication\SAC\x64\SACMonitor.exe
         1  C:\Program Files\SafeNet\Authentication\SAC\x64\SACSRV.exe
         1  C:\Program Files\WindowsApps\E0469640.LenovoUtility_3.2.1.0_x64__5grkq8ppsgwt4\VFS\ProgramFilesX64\Lenovo\LenovoUtility\utility.exe
         1  C:\Program Files\WindowsApps\Microsoft.WindowsCalculator_10.2103.8.0_x64__8wekyb3d8bbwe\Calculator.exe
         1  C:\Program Files\WindowsApps\Microsoft.WindowsStore_12104.1001.1.0_x64__8wekyb3d8bbwe\WinStore.App.exe
         1  C:\Program Files\WindowsApps\Microsoft.YourPhone_1.21042.137.0_x64__8wekyb3d8bbwe\YourPhone.exe
         1  C:\ProgramData\Microsoft\Windows Defender\Platform\4.18.2105.4-0\MsMpEng.exe
         1  C:\ProgramData\Microsoft\Windows Defender\Platform\4.18.2105.4-0\NisSrv.exe
         1  C:\Windows\Lenovo\ImController\PluginHost86\Lenovo.Modern.ImController.PluginHost.CompanionApp.exe
         1  C:\Windows\Lenovo\ImController\PluginHost86\Lenovo.Modern.ImController.PluginHost.Device.exe
         1  C:\Windows\Lenovo\ImController\PluginHost\Lenovo.Modern.ImController.PluginHost.SettingsApp.exe
         1  C:\Windows\Lenovo\ImController\Service\Lenovo.Modern.ImController.exe
         1  C:\Windows\System32\ApplicationFrameHost.exe
         1  C:\Windows\System32\DriverStore\FileRepository\cui_dch.inf_amd64_0d8dab4470c5524b\igfxCUIService.exe
         1  C:\Windows\System32\DriverStore\FileRepository\cui_dch.inf_amd64_0d8dab4470c5524b\igfxEM.exe
         1  C:\Windows\System32\DriverStore\FileRepository\dal.inf_amd64_7c484f80872e1cd8\jhi_service.exe
         1  C:\Windows\System32\DriverStore\FileRepository\iaahcic.inf_amd64_120314e52c04567c\RstMwService.exe
         1  C:\Windows\System32\DriverStore\FileRepository\igcc_dch.inf_amd64_a9a2dde7124f013f\OneApp.IGCC.WinService.exe
         1  C:\Windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_8f079a8a5c196b5d\IntelCpHDCPSvc.exe
         1  C:\Windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_8f079a8a5c196b5d\IntelCpHeciSvc.exe
         7  C:\Windows\System32\RuntimeBroker.exe
         1  C:\Windows\System32\SearchFilterHost.exe
         1  C:\Windows\System32\SearchIndexer.exe
         1  C:\Windows\System32\SearchProtocolHost.exe
         1  C:\Windows\System32\SecurityHealthService.exe
         1  C:\Windows\System32\SecurityHealthSystray.exe
         1  C:\Windows\System32\SettingSyncHost.exe
         1  C:\Windows\System32\SgrmBroker.exe
         1  C:\Windows\System32\SynTPEnh.exe
         1  C:\Windows\System32\SynTPEnhService.exe
         1  C:\Windows\System32\WUDFHost.exe
         1  C:\Windows\System32\aetcrss1.exe
         1  C:\Windows\System32\audiodg.exe
         1  C:\Windows\System32\conhost.exe
         2  C:\Windows\System32\csrss.exe
         1  C:\Windows\System32\ctfmon.exe
         1  C:\Windows\System32\dasHost.exe
         3  C:\Windows\System32\dllhost.exe
         1  C:\Windows\System32\dwm.exe
         1  C:\Windows\System32\escsvc64.exe
         2  C:\Windows\System32\fontdrvhost.exe
         1  C:\Windows\System32\lsass.exe
         1  C:\Windows\System32\oobe\UserOOBEBroker.exe
         1  C:\Windows\System32\services.exe
         1  C:\Windows\System32\sihost.exe
         1  C:\Windows\System32\smartscreen.exe
         1  C:\Windows\System32\smss.exe
         1  C:\Windows\System32\spoolsv.exe
        72  C:\Windows\System32\svchost.exe
         2  C:\Windows\System32\taskhostw.exe
         1  C:\Windows\System32\wininit.exe
         1  C:\Windows\System32\winlogon.exe
         1  C:\Windows\System32\wlanext.exe
         1  C:\Windows\SystemApps\Microsoft.Windows.Search_cw5n1h2txyewy\SearchApp.exe
         1  C:\Windows\SystemApps\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\StartMenuExperienceHost.exe
         1  C:\Windows\SystemApps\MicrosoftWindows.Client.CBS_cw5n1h2txyewy\InputApp\TextInputHost.exe
         1  C:\Windows\SystemApps\ShellExperienceHost_cw5n1h2txyewy\ShellExperienceHost.exe
         1  C:\Windows\explorer.exe
      R0 - HKCU\Software\Microsoft\Internet Explorer\Main: [Default_Page_URL] = http://lenovo17win10.msn.com/?pc=LCTE
      R0 - HKCU\Software\Microsoft\Internet Explorer\Main: [Start Page] = http://lenovo17win10.msn.com/?pc=LCTE
      R1 - HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings: [ProxyOverride] = *.local;<local>
      O2 - HKLM\..\BHO: Easy Photo Print - {9421DD08-935F-4701-A9CA-22DF90AC4EA6} - C:\Program Files (x86)\Epson Software\Easy Photo Print\EPTBL.dll
      O2 - HKLM\..\BHO: IEToEdge BHO - {1FD49718-1D00-4B19-AF5F-070AF6D5D54C} - C:\Program Files (x86)\Microsoft\Edge\Application\91.0.864.41\BHO\ie_to_edge_bho_64.dll
      O2-32 - HKLM\..\BHO: IEToEdge BHO - {1FD49718-1D00-4B19-AF5F-070AF6D5D54C} - C:\Program Files (x86)\Microsoft\Edge\Application\91.0.864.41\BHO\ie_to_edge_bho.dll
      O3 - HKLM\..\Toolbar: Easy Photo Print - {9421DD08-935F-4701-A9CA-22DF90AC4EA6} - C:\Program Files (x86)\Epson Software\Easy Photo Print\EPTBL.dll
      O4 - HKLM\..\Run: [CertificateRegistration] = C:\WINDOWS\system32\aetcrss1.exe
      O4 - HKLM\..\Run: [RTHDVCPL] = C:\Program Files\Realtek\Audio\HDA\RAVCpl64.exe -s
      O4 - HKLM\..\Run: [RtHDVBg_Dolby] = C:\Program Files\Realtek\Audio\HDA\RAVBg64.exe /FORPCEE4
      O4 - HKLM\..\Run: [RtHDVBg_LENOVO_DOLBYDRAGON] = C:\Program Files\Realtek\Audio\HDA\RAVBg64.exe /LENOVO_DOLBYDRAGON
      O4 - HKLM\..\Run: [SACMonitor] = C:\Program Files\SafeNet\Authentication\SAC\x64\SACMonitor.exe
      O4 - HKLM\..\StartupApproved\StartupFolder: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\AnyDesk.lnk    ->    C:\Program Files (x86)\AnyDesk\AnyDesk.exe --control
      O4-32 - HKLM\..\Run: [EEventManager] = C:\Program Files (x86)\Epson Software\Event Manager\EEventManager.exe
      O15 - Trusted Zone: https://toyou365-files.sharepoint.com
      O15 - Trusted Zone: https://toyou365-myfiles.sharepoint.com
      O17 - DHCP DNS 1: 8.8.8.8 (Well-known DNS: Google)
      O17 - DHCP DNS 2: 8.8.4.4 (Well-known DNS: Google)
      O17 - HKLM\System\CCS\Services\Tcpip\..\{b89c5b17-0cee-4800-9e8c-477927177f59}: [NameServer] = 8.8.4.4 (Well-known DNS: Google)
      O17 - HKLM\System\CCS\Services\Tcpip\..\{b89c5b17-0cee-4800-9e8c-477927177f59}: [NameServer] = 8.8.8.8 (Well-known DNS: Google)
      O22 - Task (.job): (Not scheduled) EPSON L3110 Series Update {5645F5FD-0943-4800-BD6D-C5A06A8C3247}.job - C:\Windows\system32\spool\DRIVERS\x64\3\E_YTSUPE.EXE /EXE:"{5645F5FD-0943-4800-BD6D-C5A06A8C3247}" /F:"Update"
      O22 - Task: (disabled) (update) \Microsoft\Windows\UpdateOrchestrator\Reboot_AC - C:\WINDOWS\system32\MusNotification.exe /RunOnAC RebootDialog (Microsoft)
      O22 - Task: (disabled) (update) \Microsoft\Windows\UpdateOrchestrator\Reboot_Battery - C:\WINDOWS\system32\MusNotification.exe /RunOnBattery RebootDialog (Microsoft)
      O22 - Task: (disabled) \Microsoft\Windows\Management\Provisioning\Retry - C:\WINDOWS\system32\ProvTool.exe /turn 5 /source ProvRetryTask (Microsoft)
      O22 - Task: (disabled) \Microsoft\Windows\Management\Provisioning\RunOnReboot - C:\WINDOWS\system32\ProvTool.exe /turn 5 /source ContinueSessionTask (Microsoft)
      O22 - Task: (disabled) \Microsoft\Windows\UpdateOrchestrator\Schedule Maintenance Work - C:\WINDOWS\system32\usoclient.exe StartMaintenanceWork (Microsoft)
      O22 - Task: (disabled) \Microsoft\Windows\UpdateOrchestrator\Schedule Wake To Work - C:\WINDOWS\system32\usoclient.exe StartWork (Microsoft)
      O22 - Task: (telemetry) \Lenovo\Vantage\Schedule\DailyTelemetryTransmission - C:\Program Files (x86)\Lenovo\VantageService\3.7.19.0\ScheduleEventAction.exe DailyTelemetryTransmission
      O22 - Task: (telemetry) \Lenovo\Vantage\Schedule\VantageTelemetryAddinTask - C:\Program Files (x86)\Lenovo\VantageService\3.6.15.0\ScheduleEventAction.exe VantageTelemetryAddinTask (file missing)
      O22 - Task: (telemetry) \Microsoft\Office\Office Subscription Maintenance - C:\Program Files (x86)\Microsoft Office\root\vfs\ProgramFilesCommonx86\Microsoft Shared\Office16\OLicenseHeartbeat.exe (Microsoft)
      O22 - Task: (telemetry) \Microsoft\Office\OfficeTelemetryAgentFallBack2016 - C:\Program Files (x86)\Microsoft Office\root\Office16\msoia.exe scan upload mininterval:2880 (Microsoft)
      O22 - Task: (telemetry) \Microsoft\Office\OfficeTelemetryAgentLogOn2016 - C:\Program Files (x86)\Microsoft Office\root\Office16\msoia.exe scan upload (Microsoft)
      O22 - Task: (telemetry) \Microsoft\Windows\Application Experience\PcaPatchDbTask - C:\WINDOWS\system32\rundll32.exe C:\WINDOWS\system32\PcaSvc.dll,PcaPatchSdbTask (Microsoft)
      O22 - Task: (update) \Microsoft\Windows\UpdateOrchestrator\USO_UxBroker - C:\WINDOWS\system32\MusNotification.exe (Microsoft)
      O22 - Task: Adobe Acrobat Update Task - C:\Program Files (x86)\Common Files\Adobe\ARM\1.0\AdobeARM.exe (file missing)
      O22 - Task: CorelUpdateHelperTask-3D46E9CD299B519CD565881EED8A362E - C:\Program Files (x86)\Corel\CUH\v2\CUH.exe -resume
      O22 - Task: CorelUpdateHelperTaskCore - C:\Program Files (x86)\Corel\CUH\v2\CUH.exe /t
      O22 - Task: EPSON L3110 Series Update {5645F5FD-0943-4800-BD6D-C5A06A8C3247} - C:\Windows\system32\spool\DRIVERS\x64\3\E_YTSUPE.EXE /EXE:"{5645F5FD-0943-4800-BD6D-C5A06A8C3247}" /F:"Update"
      O22 - Task: GoogleUpdateTaskMachineCore - C:\Program Files (x86)\Google\Update\GoogleUpdate.exe /c
      O22 - Task: GoogleUpdateTaskMachineUA - C:\Program Files (x86)\Google\Update\GoogleUpdate.exe /ua /installsource scheduler
      O22 - Task: LenovoUtility Startup - C:\Windows\explorer.exe lenovo-utility://
      O22 - Task: Opera scheduled Autoupdate 1576864708 - C:\Users\kaka2\AppData\Local\Programs\Opera\launcher.exe --scheduledautoupdate $(Arg0) (file missing)
      O22 - Task: Opera scheduled assistant Autoupdate 1576864751 - C:\Users\kaka2\AppData\Local\Programs\Opera\launcher.exe --scheduledautoupdate --component-name=assistant --component-path="C:\Users\kaka2\AppData\Local\Programs\Opera\assistant" $(Arg0) (file missing)
      O22 - Task: RTKCPL - C:\Program Files\Realtek\Audio\HDA\RAVBg64.exe /runcplsilence
      O22 - Task: Rerun Warsaw's CoreFixer - C:\Windows\TEMP\is-OUQQA.tmp\corefixer.exe /norerun (file missing)
      O22 - Task: RtHDVBg_Dolby - C:\Program Files\Realtek\Audio\HDA\RAVBg64.exe /FORPCEE4
      O22 - Task: RtHDVBg_LENOVO_DOLBYDRAGON - C:\Program Files\Realtek\Audio\HDA\RAVBg64.exe /LENOVO_DOLBYDRAGON
      O22 - Task: \Lenovo\BatteryGauge\BatteryGaugeMaintenance - C:\ProgramData\Lenovo\ImController\Plugins\LenovoBatteryGaugePackage\x64\BGHelper.exe
      O22 - Task: \Lenovo\ImController\Lenovo iM Controller Monitor - C:\WINDOWS\system32\ImController.InfInstaller.exe -checkremoval
      O22 - Task: \Lenovo\ImController\Lenovo iM Controller Scheduled Maintenance - C:\WINDOWS\system32\sc.exe START ImControllerService
      O22 - Task: \Lenovo\ImController\Plugins\LenovoSystemUpdatePlugin_WeeklyTask - C:\WINDOWS\System32\reg.exe add hklm\SOFTWARE\Lenovo\SystemUpdatePlugin\scheduler  /v start /t reg_dword /d 1 /f /reg:32
      O22 - Task: \Lenovo\ImController\TimeBasedEvents\2bfc28dd-a2f0-4bb0-b636-e33393690002 - C:\WINDOWS\Lenovo\ImController\Service\Lenovo.Modern.ImController.exe /timebasedeventtrigger 2bfc28dd-a2f0-4bb0-b636-e33393690002
      O22 - Task: \Lenovo\ImController\TimeBasedEvents\527d7dc2-982f-4b05-9df3-272d0858624a - C:\WINDOWS\Lenovo\ImController\Service\Lenovo.Modern.ImController.exe /timebasedeventtrigger 527d7dc2-982f-4b05-9df3-272d0858624a
      O22 - Task: \Lenovo\ImController\TimeBasedEvents\8aa48bbe-6220-4497-a16c-76ea228310f6 - C:\WINDOWS\Lenovo\ImController\Service\Lenovo.Modern.ImController.exe /timebasedeventtrigger 8aa48bbe-6220-4497-a16c-76ea228310f6
      O22 - Task: \Lenovo\ImController\TimeBasedEvents\a74d2bd4-07a9-4ecf-b531-4a9abcc97296 - C:\WINDOWS\Lenovo\ImController\Service\Lenovo.Modern.ImController.exe /timebasedeventtrigger a74d2bd4-07a9-4ecf-b531-4a9abcc97296
      O22 - Task: \Lenovo\Vantage\Lenovo.Vantage.ServiceMaintainance - C:\WINDOWS\system32\sc.exe start LenovoVantageService
      O23 - Service R2: @oem12.inf,%ImcSvcDisplayName%;System Interface Foundation Service - (ImControllerService) - C:\WINDOWS\Lenovo\ImController\Service\Lenovo.Modern.ImController.exe
      O23 - Service R2: Adobe Acrobat Update Service - (AdobeARMservice) - C:\Program Files (x86)\Common Files\Adobe\ARM\1.0\armsvc.exe
      O23 - Service R2: AnyDesk Service - (AnyDesk) - C:\Program Files (x86)\AnyDesk\AnyDesk.exe --service
      O23 - Service R2: Corel License Validation Service V2 x64, Powered by arvato - (PSI_SVC_2_x64) - c:\Program Files\Common Files\Protexis\License Service\PsiService_2.exe
      O23 - Service R2: Corel License Validation Service V2, Powered by arvato - (PSI_SVC_2) - c:\Program Files (x86)\Common Files\Protexis\License Service\PsiService_2.exe
      O23 - Service R2: Dolby DAX2 API Service - C:\Program Files\Dolby\Dolby DAX2\DAX2_API\DolbyDAX2API.exe
      O23 - Service R2: Epson Scanner Service - (EpsonScanSvc) - C:\Windows\system32\EscSvc64.exe
      O23 - Service R2: EpsonCustomerResearchParticipation - C:\Program Files\EPSON\EpsonCustomerResearchParticipation\EPCP.exe
      O23 - Service R2: Foxit Reader Update Service - (FoxitReaderUpdateService) - C:\Program Files (x86)\Foxit Software\Foxit Reader\FoxitReaderUpdateService.exe
      O23 - Service R2: Intel(R) Content Protection HDCP Service - (cplspcon) - C:\WINDOWS\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_8f079a8a5c196b5d\IntelCpHDCPSvc.exe
      O23 - Service R2: Intel(R) Dynamic Application Loader Host Interface Service - (jhi_service) - C:\WINDOWS\System32\DriverStore\FileRepository\dal.inf_amd64_7c484f80872e1cd8\jhi_service.exe
      O23 - Service R2: Intel(R) Graphics Command Center Service - (igccservice) - C:\WINDOWS\System32\DriverStore\FileRepository\igcc_dch.inf_amd64_a9a2dde7124f013f\OneApp.IGCC.WinService.exe
      O23 - Service R2: Intel(R) HD Graphics Control Panel Service - (igfxCUIService2.0.0.0) - C:\WINDOWS\System32\DriverStore\FileRepository\cui_dch.inf_amd64_0d8dab4470c5524b\igfxCUIService.exe
      O23 - Service R2: Intel(R) Storage Middleware Service - (RstMwService) - C:\WINDOWS\System32\DriverStore\FileRepository\iaahcic.inf_amd64_120314e52c04567c\RstMwService.exe
      O23 - Service R2: LenovoVantageService - C:\Program Files (x86)\Lenovo\VantageService\3.7.19.0\LenovoVantageService.exe
      O23 - Service R2: Realtek Audio Service - (RtkAudioService) - C:\Program Files\Realtek\Audio\HDA\RtkAudioService64.exe
      O23 - Service R2: SACSrv - C:\Program Files\SafeNet\Authentication\SAC\x64\SACSRV.exe
      O23 - Service R2: Serviço do Bonjour - (Bonjour Service) - C:\Program Files\Bonjour\mDNSResponder.exe
      O23 - Service R2: SynTPEnhService - C:\WINDOWS\System32\SynTPEnhService.exe
      O23 - Service R2: Warsaw Technology - C:\Program Files\Diebold\Warsaw\core.exe
      O23 - Service R3: Intel(R) Content Protection HECI Service - (cphs) - C:\WINDOWS\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_8f079a8a5c196b5d\IntelCpHeciSvc.exe
      O23 - Service S2: Intel(R) TPM Provisioning Service - C:\WINDOWS\System32\DriverStore\FileRepository\iclsclient.inf_amd64_a93205b6238060e4\lib\TPMProvisioningService.exe
      O23 - Service S2: Serviço do Google Update (gupdate) - (gupdate) - C:\Program Files (x86)\Google\Update\GoogleUpdate.exe /svc
      O23 - Service S3: Google Chrome Elevation Service - (GoogleChromeElevationService) - C:\Program Files (x86)\Google\Chrome\Application\91.0.4472.77\elevation_service.exe
      O23 - Service S3: Intel(R) Capability Licensing Service TCP IP Interface - C:\WINDOWS\System32\DriverStore\FileRepository\iclsclient.inf_amd64_a93205b6238060e4\lib\SocketHeciServer.exe
      O23 - Service S3: Serviço do Google Update (gupdatem) - (gupdatem) - C:\Program Files (x86)\Google\Update\GoogleUpdate.exe /medsvc

      --
      End of file - Time spent: 28,4 sec. - 34690 bytes, CRC32: FFFFFFFF. Sign: 酾ᎌ
    • Por Guilherme Teixeira
      Olá pessoal tudo bem?
      Sou iniciante em React + Material Ui no node.js
       
      Quanto ao layout estou indo até que bem. Contudo, hoje me deparei com um problema.
      Estou fazendo um formulário de login que irá verificar os dados em um BD Mysql.
      Criei o formulário com hook form e na hora de submeter pretendo passar os dados do formulário por parametro em uma função, ela pesquisar no mysql e retornar o resultado.
      Contudo, na hora que coloquei funções assincronas que tem Promisse no arquivo que irá conectar com o DB o seguinte erro aparece: 
      Unhandled Rejection (TypeError): Net.connect is not a function
      Isso depois que coloquei os códigos para conectar o DB. Como faço para chamar funcões assincornas dentro React então? (a chamada está onde está comentado "Aqui chamo a função"
      Segue o código:
       
      import React, { useState } from 'react'; import Container from '@material-ui/core/Container'; import Grid from '@material-ui/core/Grid'; import Card from '@material-ui/core/Card'; import CardMedia from '@material-ui/core/CardMedia'; import { makeStyles } from '@material-ui/core/styles'; import Typography from '@material-ui/core/Typography'; import FormControl from '@material-ui/core/FormControl'; import Input from '@material-ui/core/Input'; import InputLabel from '@material-ui/core/InputLabel'; import InputAdornment from '@material-ui/core/InputAdornment'; import AccountCircle from '@material-ui/icons/AccountCircle'; import Lock from '@material-ui/icons/Lock'; import Button from '@material-ui/core/Button'; import { useForm } from "react-hook-form"; import Alert from '@material-ui/lab/Alert'; const useStyles = makeStyles((theme) => ({ logotipo: { paddingTop: theme.spacing(6), backgroundColor: theme.palette.background.default, margin: '0 auto', boxShadow: 'none' }, logotipoSegg: { margin: '0 auto', width: '30%' }, centraliza: { textAlign: 'center', paddingTop: theme.spacing(4), }, margin: { marginTop: theme.spacing(2), paddingRight: theme.spacing(2), paddingLeft: theme.spacing(2) }, button: { marginTop: theme.spacing(4), } })); export default function Login() { const { register, handleSubmit, formState: { errors } } = useForm(); const onSubmit = data => { console.log(data) document.getElementById('usuario').setAttribute('disabled', 'true') document.getElementById('senha').setAttribute('disabled', 'true') /*** Aqui chamo a função ******/ const usuario = require('../config/Usuario') console.log(usuario.login) }; const classes = useStyles(); return ( <> <Container maxWidth='lg'> <Grid container direction="row" justify="space-around" alignItems="flex-start" > <Grid item xs={12} sm={6} md={5} > <Card className={classes.logotipo}> <CardMedia component="img" alt='Logotipo Live Experience' image='/images/LogotipoLiveExperience.png' title='Logotipo Live Experience' /> </Card> <Typography variant="h1" component="h1">Sistema de gestão para Restreaming</Typography> <Typography component="p" className={classes.centraliza}>Faça seu login para acessar o sistema</Typography> <form onSubmit={handleSubmit(onSubmit)}> <FormControl className={classes.margin} fullWidth> <InputLabel htmlFor="usuario">Digite seu usuário:</InputLabel> <Input id="usuario" {...register("usuario", { required: true })} startAdornment={ <InputAdornment position="start"> <AccountCircle /> </InputAdornment> } /> </FormControl> {errors?.usuario?.type === "required" && <Alert severity="error">É necessário informar seu usuário acima!</Alert>} <FormControl className={classes.margin} fullWidth> <InputLabel htmlFor="senha">Digite sua senha:</InputLabel> <Input id="senha" type='password' {...register("senha", { required: true })} startAdornment={ <InputAdornment position="start"> <Lock /> </InputAdornment> } /> </FormControl> {errors?.senha?.type === "required" && <Alert severity="error">É necessário informar sua senha acima!</Alert>} <Button fullWidth variant="contained" color="primary" className={classes.button} type="submit">Acessar Sistema</Button> </form> <Typography component="p" className={classes.centraliza}><img src="/images/segg.png" alt='SEGG' className={classes.logotipoSegg} /></Typography> </Grid> </Grid> </Container> </>); } E este é começo do código do Mysql que comecei e na hora que coloquei a conexão deu o erro: 
       
      const mysql = require('mysql2') const connection = mysql.createConnection({ host: 'localhost', user: 'root', password: 'xxxxxxx', database: 'liveexperience' }); function login(dados) { return ('Ok para ' + dados.usuario) } module.exports = {login} Desde já muito obrigado.
×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.