Giter Club home page Giter Club logo

Comments (7)

0xbs0d avatar 0xbs0d commented on May 18, 2024 1

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.

asklar avatar asklar commented on May 18, 2024

@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.

0xbs0d avatar 0xbs0d commented on May 18, 2024

@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.

lexprom avatar lexprom commented on May 18, 2024

@asklar I tried that, now getting the same error as @0xbs0d when running react-native start or yarn start. In VS2019:
image

from react-native-windows-samples.

asklar avatar asklar commented on May 18, 2024

@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.

lexprom avatar lexprom commented on May 18, 2024

@asklar hi, I cloned a new version and did everything from scratch.
Now on npx react-native run-windows:
image
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 avatar asklar commented on May 18, 2024

@asklar hi, I cloned a new version and did everything from scratch.
Now on npx react-native run-windows:
image
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.