React-native-windows: [react-native-windows - 0.57.0-rc.4] - react-native windows - doesn't create windows folder with UWP application

Created on 21 Jan 2019  路  5Comments  路  Source: microsoft/react-native-windows

Environment

  1. react-native -v: 0.57.8
  2. npm ls rnpm-plugin-windows: 0.2.8
  3. npm ls react-native-windows: 0.57.0-rc.4
  4. node -v: v8.15.0
  5. npm -v: 6.4.1

Steps to Reproduce

  1. npm i react-native-cli -g
  2. react-native init AppName
  3. npm i rnpm-plugin-windows
  4. react-native windows

Expected Behavior

Should be created windows folder with UWP application

Actual Behavior

Reading application name from package.json...
Reading react-native version from node_modules...
Checking for react-native-windows version matching 0.57.*...
Installing [email protected]...
Generating self-signed certificate...
Using Default Certificate. Use Visual Studio to renew it.
new windows/AppName/AppName_TemporaryKey.pfx
ENOENT: no such file or directory, open '/home/AppName/windows/AppName/AppName_TemporaryKey.pfx'

Most helpful comment

FYI, PR merged and published in 0.57.0-rc.5.

All 5 comments

@a-tarasyuk - what environment are you running the command from? Are you generating the react-native-windows app from a Mac? Usually the CLI tool will generate a certificate instead of using the default certificate if running from Windows.

@rozele Linux and Mac. Basically, the issue is simple, just need to create windows folder _(in the previous version Yeoman fs could create folders recursively)_ before generating/copy default certificate, because the certificate has to be copied to folders which do not exists. The previous version, which was based on yo API allowed use RNW_CLI on any platform. What do you think does that make sense?

Definitely, I'll look at the PR. Thanks @a-tarasyuk.

FYI, PR merged and published in 0.57.0-rc.5.

@rozele Thanks

Was this page helpful?
0 / 5 - 0 ratings