Comments (7)
It works for me now.
I deleted the local files, pulled the repo from github. Then i did yarn install and npx react-native run-windows and it all went smoothly.
Thank you @asklar
from react-native-windows-samples.
@lexprom looks like you're running an older version of RNW. Can you update package.json like so:
"react-native": "0.62.2",
"react-native-windows": "^0.62.0-preview.11"
With VS2019 and updating the sample's package.json, I can build the app just fine. The app seems to crash on launch, though, on closer inspection. Paging @qmatteoq . We should make sure that as we evolve the platform, the sample apps keep stable/building (#137)
from react-native-windows-samples.
@asklar I tried updating the package.json as you suggested. The app builds but fails to start/install. I'm getting the same error on every sample in the repo.
Start-Locally : Faulting application name: Calculator.exe, version: 0.0.0.0, time stamp: 0x5edf7514
Faulting module name: Calculator.exe, version: 0.0.0.0, time stamp: 0x5edf7514
Exception code: 0xc0000005
Fault offset: 0x000eb6cc
Faulting process id: 0x17104
Faulting application start time: 0x01d63e536323e9a4
Faulting application path:
D:\dev\react-native-windows-samples\samples\Calculator\windows\Debug\Calculator\Calculator.exe
Faulting module path:
D:\dev\react-native-windows-samples\samples\Calculator\windows\Debug\Calculator\Calculator.exe
Report Id: d5d723f1-028b-4747-81f9-c8294520dec7
Faulting package full name: 35d79556-a169-4a2c-81eb-296f32ffb465_1.0.0.0_x86__ha4szp75kcxjr
Faulting package-relative application ID: App
At line:1 char:166
+ ... Utils.ps1"; Start-Locally 35d79556-a169-4a2c-81eb-296f32ffb465 --remo ...
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Start-Locally
and in the other window
> react-native start
error Invalid regular expression: /(D:[\\\]dev[\\\]react-native-windows-samples[\\\]samples[\\\]Calculator[\\\]node_modules[\\\]react-native[\\\].*|D:[\\\]dev[\\\]react-native-windows-samples[\\\]samples[\\\]Calculator[\\\]windows.*|node_modules\\react\\dist\\.*|website\\node_modules\\.*|heapCapture\\bundle\.js|.*\\__tests__\\.*)$/: Range out of order in character class. Run CLI with --verbose flag for more details.
SyntaxError: Invalid regular expression: /(D:[\\\]dev[\\\]react-native-windows-samples[\\\]samples[\\\]Calculator[\\\]node_modules[\\\]react-native[\\\].*|D:[\\\]dev[\\\]react-native-windows-samples[\\\]samples[\\\]Calculator[\\\]windows.*|node_modules\\react\\dist\\.*|website\\node_modules\\.*|heapCapture\\bundle\.js|.*\\__tests__\\.*)$/: Range out of order in character class
at new RegExp (<anonymous>)
at blacklist (D:\dev\react-native-windows-samples\samples\Calculator\node_modules\metro-config\src\defaults\blacklist.js:34:10)
at Object.<anonymous> (D:\dev\react-native-windows-samples\samples\Calculator\metro.config.js:30:18)
at Module._compile (internal/modules/cjs/loader.js:1156:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1176:10)
at Module.load (internal/modules/cjs/loader.js:1000:32)
at Function.Module._load (internal/modules/cjs/loader.js:899:14)
at Module.require (internal/modules/cjs/loader.js:1042:19)
at require (internal/modules/cjs/helpers.js:77:18)
at module.exports (D:\dev\react-native-windows-samples\samples\Calculator\node_modules\import-fresh\index.js:28:9)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `react-native start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
from react-native-windows-samples.
@asklar I tried that, now getting the same error as @0xbs0d when running react-native start or yarn start
. In VS2019:
from react-native-windows-samples.
@lexprom @0xbs0d
I've updated the sample app to work against 0.62 and added it to the repo's CI build.
#138
Please try again and let us know if you hit any issues still.
from react-native-windows-samples.
@asklar hi, I cloned a new version and did everything from scratch.
Now on npx react-native run-windows
:
Tried to launch it in VS2019 still the same problems 😔
First command with --logging
:
C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\PropertySheets
\ReactPatches.targets(35,5): error MSB3027: Could not copy "C:\Users\pak\Documents\react-native-windows-samples\samples
\Calculator\node_modules\react-native\ReactCommon\fabric\components\legacyviewmanagerinterop\LegacyViewManagerInteropVi
ewEventEmitter.h" to "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-
windows\build\x86\Debug\Microsoft.ReactNative\\react-native-patched\\ReactCommon\\fabric\components\legacyviewmanagerin
terop\LegacyViewManagerInteropViewEventEmitter.h". Exceeded retry count of 10. Failed. [C:\Users\pak\Documents\react-n
ative-windows-samples\samples\Calculator\node_modules\react-native-windows\Microsoft.ReactNative\Microsoft.ReactNative.
vcxproj]
C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\PropertySheets
\ReactPatches.targets(35,5): error MSB3021: Unable to copy file "C:\Users\pak\Documents\react-native-windows-samples\sa
mples\Calculator\node_modules\react-native\ReactCommon\fabric\components\legacyviewmanagerinterop\LegacyViewManagerInte
ropViewEventEmitter.h" to "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-na
tive-windows\build\x86\Debug\Microsoft.ReactNative\\react-native-patched\\ReactCommon\\fabric\components\legacyviewmana
gerinterop\LegacyViewManagerInteropViewEventEmitter.h". Could not find a part of the path 'C:\Users\pak\Documents\react
-native-windows-samples\samples\Calculator\node_modules\react-native-windows\build\x86\Debug\Microsoft.ReactNative\\rea
ct-native-patched\\ReactCommon\\fabric\components\legacyviewmanagerinterop\LegacyViewManagerInteropViewEventEmitter.h'.
[C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\Microsoft.Re
actNative\Microsoft.ReactNative.vcxproj]
C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\PropertySheets
\ReactPatches.targets(35,5): error MSB3027: Could not copy "C:\Users\pak\Documents\react-native-windows-samples\samples
\Calculator\node_modules\react-native\ReactCommon\fabric\components\legacyviewmanagerinterop\LegacyViewManagerInteropCo
mponentDescriptor.h" to "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-nati
ve-windows\build\x86\Debug\Microsoft.ReactNative\\react-native-patched\\ReactCommon\\fabric\components\legacyviewmanage
rinterop\LegacyViewManagerInteropComponentDescriptor.h". Exceeded retry count of 10. Failed. [C:\Users\pak\Documents\r
eact-native-windows-samples\samples\Calculator\node_modules\react-native-windows\Microsoft.ReactNative\Microsoft.ReactN
ative.vcxproj]
C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\PropertySheets
\ReactPatches.targets(35,5): error MSB3021: Unable to copy file "C:\Users\pak\Documents\react-native-windows-samples\sa
mples\Calculator\node_modules\react-native\ReactCommon\fabric\components\legacyviewmanagerinterop\LegacyViewManagerInte
ropComponentDescriptor.h" to "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react
-native-windows\build\x86\Debug\Microsoft.ReactNative\\react-native-patched\\ReactCommon\\fabric\components\legacyviewm
anagerinterop\LegacyViewManagerInteropComponentDescriptor.h". Could not find a part of the path 'C:\Users\pak\Documents
\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\build\x86\Debug\Microsoft.ReactNativ
e\\react-native-patched\\ReactCommon\\fabric\components\legacyviewmanagerinterop\LegacyViewManagerInteropComponentDescr
iptor.h'. [C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\Mic
rosoft.ReactNative\Microsoft.ReactNative.vcxproj]
C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\PropertySheets
\ReactPatches.targets(35,5): error MSB3027: Could not copy "C:\Users\pak\Documents\react-native-windows-samples\samples
\Calculator\node_modules\react-native\ReactCommon\fabric\components\legacyviewmanagerinterop\LegacyViewManagerInteropVi
ewEventEmitter.cpp" to "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-nativ
e-windows\build\x86\Debug\Microsoft.ReactNative\\react-native-patched\\ReactCommon\\fabric\components\legacyviewmanager
interop\LegacyViewManagerInteropViewEventEmitter.cpp". Exceeded retry count of 10. Failed. [C:\Users\pak\Documents\rea
ct-native-windows-samples\samples\Calculator\node_modules\react-native-windows\Microsoft.ReactNative\Microsoft.ReactNat
ive.vcxproj]
C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\PropertySheets
\ReactPatches.targets(35,5): error MSB3021: Unable to copy file "C:\Users\pak\Documents\react-native-windows-samples\sa
mples\Calculator\node_modules\react-native\ReactCommon\fabric\components\legacyviewmanagerinterop\LegacyViewManagerInte
ropViewEventEmitter.cpp" to "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-
native-windows\build\x86\Debug\Microsoft.ReactNative\\react-native-patched\\ReactCommon\\fabric\components\legacyviewma
nagerinterop\LegacyViewManagerInteropViewEventEmitter.cpp". Could not find a part of the path 'C:\Users\pak\Documents\r
eact-native-windows-samples\samples\Calculator\node_modules\react-native-windows\build\x86\Debug\Microsoft.ReactNative\
\react-native-patched\\ReactCommon\\fabric\components\legacyviewmanagerinterop\LegacyViewManagerInteropViewEventEmitter
.cpp'. [C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\Micros
oft.ReactNative\Microsoft.ReactNative.vcxproj]
Done Building Project "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native
-windows\Microsoft.ReactNative\Microsoft.ReactNative.vcxproj" (default targets) -- FAILED.
Done Building Project "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\windows\Calculator\Calcul
ator.vcxproj.metaproj" (default targets) -- FAILED.
Done Building Project "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\windows\Calculator.sln" (
default targets) -- FAILED.
from react-native-windows-samples.
@asklar hi, I cloned a new version and did everything from scratch.
Now onnpx react-native run-windows
:
Tried to launch it in VS2019 still the same problems 😔
First command with--logging
:C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\PropertySheets \ReactPatches.targets(35,5): error MSB3027: Could not copy "C:\Users\pak\Documents\react-native-windows-samples\samples \Calculator\node_modules\react-native\ReactCommon\fabric\components\legacyviewmanagerinterop\LegacyViewManagerInteropVi ewEventEmitter.h" to "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native- windows\build\x86\Debug\Microsoft.ReactNative\\react-native-patched\\ReactCommon\\fabric\components\legacyviewmanagerin terop\LegacyViewManagerInteropViewEventEmitter.h". Exceeded retry count of 10. Failed. [C:\Users\pak\Documents\react-n ative-windows-samples\samples\Calculator\node_modules\react-native-windows\Microsoft.ReactNative\Microsoft.ReactNative. vcxproj] C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\PropertySheets \ReactPatches.targets(35,5): error MSB3021: Unable to copy file "C:\Users\pak\Documents\react-native-windows-samples\sa mples\Calculator\node_modules\react-native\ReactCommon\fabric\components\legacyviewmanagerinterop\LegacyViewManagerInte ropViewEventEmitter.h" to "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-na tive-windows\build\x86\Debug\Microsoft.ReactNative\\react-native-patched\\ReactCommon\\fabric\components\legacyviewmana gerinterop\LegacyViewManagerInteropViewEventEmitter.h". Could not find a part of the path 'C:\Users\pak\Documents\react -native-windows-samples\samples\Calculator\node_modules\react-native-windows\build\x86\Debug\Microsoft.ReactNative\\rea ct-native-patched\\ReactCommon\\fabric\components\legacyviewmanagerinterop\LegacyViewManagerInteropViewEventEmitter.h'. [C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\Microsoft.Re actNative\Microsoft.ReactNative.vcxproj] C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\PropertySheets \ReactPatches.targets(35,5): error MSB3027: Could not copy "C:\Users\pak\Documents\react-native-windows-samples\samples \Calculator\node_modules\react-native\ReactCommon\fabric\components\legacyviewmanagerinterop\LegacyViewManagerInteropCo mponentDescriptor.h" to "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-nati ve-windows\build\x86\Debug\Microsoft.ReactNative\\react-native-patched\\ReactCommon\\fabric\components\legacyviewmanage rinterop\LegacyViewManagerInteropComponentDescriptor.h". Exceeded retry count of 10. Failed. [C:\Users\pak\Documents\r eact-native-windows-samples\samples\Calculator\node_modules\react-native-windows\Microsoft.ReactNative\Microsoft.ReactN ative.vcxproj] C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\PropertySheets \ReactPatches.targets(35,5): error MSB3021: Unable to copy file "C:\Users\pak\Documents\react-native-windows-samples\sa mples\Calculator\node_modules\react-native\ReactCommon\fabric\components\legacyviewmanagerinterop\LegacyViewManagerInte ropComponentDescriptor.h" to "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react -native-windows\build\x86\Debug\Microsoft.ReactNative\\react-native-patched\\ReactCommon\\fabric\components\legacyviewm anagerinterop\LegacyViewManagerInteropComponentDescriptor.h". Could not find a part of the path 'C:\Users\pak\Documents \react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\build\x86\Debug\Microsoft.ReactNativ e\\react-native-patched\\ReactCommon\\fabric\components\legacyviewmanagerinterop\LegacyViewManagerInteropComponentDescr iptor.h'. [C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\Mic rosoft.ReactNative\Microsoft.ReactNative.vcxproj] C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\PropertySheets \ReactPatches.targets(35,5): error MSB3027: Could not copy "C:\Users\pak\Documents\react-native-windows-samples\samples \Calculator\node_modules\react-native\ReactCommon\fabric\components\legacyviewmanagerinterop\LegacyViewManagerInteropVi ewEventEmitter.cpp" to "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-nativ e-windows\build\x86\Debug\Microsoft.ReactNative\\react-native-patched\\ReactCommon\\fabric\components\legacyviewmanager interop\LegacyViewManagerInteropViewEventEmitter.cpp". Exceeded retry count of 10. Failed. [C:\Users\pak\Documents\rea ct-native-windows-samples\samples\Calculator\node_modules\react-native-windows\Microsoft.ReactNative\Microsoft.ReactNat ive.vcxproj] C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\PropertySheets \ReactPatches.targets(35,5): error MSB3021: Unable to copy file "C:\Users\pak\Documents\react-native-windows-samples\sa mples\Calculator\node_modules\react-native\ReactCommon\fabric\components\legacyviewmanagerinterop\LegacyViewManagerInte ropViewEventEmitter.cpp" to "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react- native-windows\build\x86\Debug\Microsoft.ReactNative\\react-native-patched\\ReactCommon\\fabric\components\legacyviewma nagerinterop\LegacyViewManagerInteropViewEventEmitter.cpp". Could not find a part of the path 'C:\Users\pak\Documents\r eact-native-windows-samples\samples\Calculator\node_modules\react-native-windows\build\x86\Debug\Microsoft.ReactNative\ \react-native-patched\\ReactCommon\\fabric\components\legacyviewmanagerinterop\LegacyViewManagerInteropViewEventEmitter .cpp'. [C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native-windows\Micros oft.ReactNative\Microsoft.ReactNative.vcxproj] Done Building Project "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\node_modules\react-native -windows\Microsoft.ReactNative\Microsoft.ReactNative.vcxproj" (default targets) -- FAILED. Done Building Project "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\windows\Calculator\Calcul ator.vcxproj.metaproj" (default targets) -- FAILED. Done Building Project "C:\Users\pak\Documents\react-native-windows-samples\samples\Calculator\windows\Calculator.sln" ( default targets) -- FAILED.
@lexprom hmm looks like you run into problems trying to copy some files... the only thing that comes to mind is maybe you forgot to run yarn ? You can see the calculator app building in the CI, maybe you can follow the steps in the pipeline (see .github/workflows/samples-CI.yml)
from react-native-windows-samples.
Related Issues (20)
- Update rnw-dependencies for RNW 0.71 HOT 1
- Update manual dependency list for upcoming RNW 0.71
- Request for documentation help with managing `ms-appx` within an RNW app
- AppServiceDemo with Hermes does not build on release HOT 10
- Popup.autoFocus doesn't appear in API documentation
- Deprecate the rssreader sample HOT 6
- Remove deprecated samples from the issue template HOT 1
- Update GitHub Actions workflows with parameterized templates HOT 1
- FancyMath walkthrough in docs has drifted from what's checked into the samples HOT 5
- Windows 10 Compatibility page shouldn't need to be versioned HOT 1
- NativeModuleSample cppwinrt fails to build: Cannot open include file: 'winrt/impl/Windows.Devices.Bluetooth.GenericAttributeProfile.1.h' HOT 7
- Failure to build AppServiceDemo for ARM64 in CI
- Document node 18 dependecies HOT 1
- Migrate (or fork) samples from Paper to Fabric
- [Fabric] Fabric Apps Should Have a Documented Path for Store Publishing
- Instructions for direct debugging with VS Code's built-in Node.js debugger no longer work
- Issues with Calculator sample, has not been registered HOT 7
- Deprecate CalculatorCoreAppNuget sample
- Add Documentation for TextInput's submitKeyEvents and clearTextOnSubmit
- Direct Debugging config created for VS Code doesn't match documentation HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-windows-samples.