Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot deploy via CLI when using react-native-video #7136

Closed
trlanfeng opened this issue Feb 14, 2021 · 5 comments
Closed

Cannot deploy via CLI when using react-native-video #7136

trlanfeng opened this issue Feb 14, 2021 · 5 comments
Labels
bug Extensions Tracks issues against community modules and extensions External Issue tracked in this repo but change will need to happen in another repo Needs: Author Feedback The issue/PR needs activity from its author (label drives bot activity) no-recent-activity Issue/PR has gone stale and may be closed (label applied by bot)
Milestone

Comments

@trlanfeng
Copy link

cli and vscode build the project failed.
vs can build and debug the app.

Environment

Run the following in your terminal and copy the results here.

  1. react native version: 4.14.0
  2. info
  System:
    OS: Windows 10 10.0.21313
    CPU: (8) x64 AMD Ryzen 5 3550H with Radeon Vega Mobile Gfx
    Memory: 7.70 GB / 14.88 GB
  Binaries:
    Node: 14.15.4 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.4 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 7.5.2 - C:\Program Files\nodejs\npm.CMD
  npmPackages:
    react: 16.13.1 => 16.13.1
    react-native: 0.63.4 => 0.63.4
    react-native-windows: ^0.63.20 => 0.63.20
  Installed UWP SDKs:
    10.0.17763.0
    10.0.18362.0

by cli

PS C:\Code\TVApp> npx react-native run-windows
 √ Auto-linking...
Success: No auto-linking changes necessary. (3249ms)
 √ Found MSBuild v16.0 at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin (16.8.31005.135)
 √ Restoring NuGet packages
 √ Found Solution: C:\Code\TVApp\windows\tvapp.sln
 i Build configuration: Debug
 i Build platform: x86
 √ Building Solution
 √ Starting the React-Native Server
 √ Removing old version of the app
 √ Enabling Developer Mode
 √ Installing dependent framework packages
 √ Found Solution: windows\tvapp.sln
 i Build configuration: Debug
 i Build platform: x86
 i Build target: Deploy
 × Building Solution: C:\Code\TVApp\node_modules\react-native-video\windows\ReactNativeVideoCPP\ReactNativeVideoC...
 × Failed to deploy:     10>C:\Code\TVApp\node_modules\react-native-video\windows\ReactNativeVideoCPP\ReactNativeVideoCPP.vcxproj : error MSB4057: ����Ŀ�в�����Ŀ�ꡰDeploy����
Re-run the command with --logging for more information
npm ERR! code 1
npm ERR! path C:\Code\TVApp
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c react-native run-windows

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\trlan\AppData\Local\npm-cache\_logs\2021-02-14T02_18_11_912Z-debug.log

by vscode

[Info] 正在启动包生成工具

                                                          
               ######                ######               
             ###     ####        ####     ###             
            ##          ###    ###          ##            
            ##             ####             ##            
            ##             ####             ##            
            ##           ##    ##           ##            
            ##         ###      ###         ##            
             ##  ########################  ##             
          ######    ###            ###    ######          
      ###     ##    ##              ##    ##     ###      
   ###         ## ###      ####      ### ##         ###   
  ##           ####      ########      ####           ##  
 ##             ###     ##########     ###             ## 
  ##           ####      ########      ####           ##  
   ###         ## ###      ####      ### ##         ###   
      ###     ##    ##              ##    ##     ###      
          ######    ###            ###    ######          
             ##  ########################  ##             
            ##         ###      ###         ##            
            ##           ##    ##           ##            
            ##             ####             ##            
            ##             ####             ##            
            ##          ###    ###          ##            
             ###     ####        ####     ###             
               ######                ######               
                                                          
                 Welcome to React Native!
                Learn once, write anywhere


[Info] 已启动包生成工具。

[Info] Prewarming bundle cache. This may take a while ...

[Info] 即将获得: http://localhost:8081/index.bundle?platform=windows

[Sun Feb 14 2021 10:19:58.874]  BUNDLE  ./index.windows.js 

[Warning] 已预热捆绑缓存。

[Info] Building and running application.

[Error] Error: 执行命令 c:\Code\TVApp\node_modules\.bin\react-native.cmd run-windows --logging --remote-debugging --no-packager 时出错: 执行命令 c:\Code\TVApp\node_modules\.bin\react-native.cmd run-windows --logging --remote-debugging --no-packager 时出错 (error code 101)
@trlanfeng trlanfeng added the bug label Feb 14, 2021
@ghost ghost added the Needs: Triage 🔍 New issue that needs to be reviewed by the issue management team (label applied by bot) label Feb 14, 2021
@NickGerleman NickGerleman changed the title building solution failed by cli and vscode Cannot deploy via CLI when using react-native-video Feb 14, 2021
@NickGerleman
Copy link
Collaborator

Related issue. #6280

Video is checked off here, but IIRC they weren't publishing new versions. Chris/Jon can chime in with better context.

As a current workaround, you can use Visual Studio to build instead of building with the CLI.

@asklar
Copy link
Member

asklar commented Feb 15, 2021

This should be fixed once we release 0.64 since we won't depend on the Deploy target anymore

@asklar
Copy link
Member

asklar commented Feb 15, 2021

in the meantime, TheWidlarzGroup/react-native-video#2288

@chrisglein chrisglein added Extensions Tracks issues against community modules and extensions External Issue tracked in this repo but change will need to happen in another repo and removed Needs: Triage 🔍 New issue that needs to be reviewed by the issue management team (label applied by bot) labels Feb 18, 2021
@chrisglein
Copy link
Member

@trlanfeng You can try manually patching this to your video module while we wait for that PR to be accepted. Hopefully that unblocks you. Let us know if not. As mentioned above, we also expect that with the next version of RNW this class of issue will go away.

@chrisglein chrisglein added the Needs: Author Feedback The issue/PR needs activity from its author (label drives bot activity) label Feb 18, 2021
@chrisglein chrisglein added this to the Backlog milestone Feb 18, 2021
@ghost ghost added the no-recent-activity Issue/PR has gone stale and may be closed (label applied by bot) label Feb 25, 2021
@ghost
Copy link

ghost commented Feb 25, 2021

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 14 days of this comment.

@ghost ghost closed this as completed Mar 11, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Extensions Tracks issues against community modules and extensions External Issue tracked in this repo but change will need to happen in another repo Needs: Author Feedback The issue/PR needs activity from its author (label drives bot activity) no-recent-activity Issue/PR has gone stale and may be closed (label applied by bot)
Projects
None yet
Development

No branches or pull requests

4 participants