-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
code push package not building with react native windows. #2235
Comments
@arunvenkat1911 Can you share the build log that contains the failure? |
Attaching the Build log. Also please have a look at the errors that we get while running the app from visual studio. |
From that build log:
Can you check to see if your dependencies are set up correctly with that script? (and enable logging and report back if it's reporting an issue) |
Please have a look at the attached file. The issue is coming from code push package added. E:\Samples\CodePush\windowscodepushsample\node_modules\react-native-code-push\windows\CodePush\CodePushConfig.cpp(18,36): error C2259: 'winrt::Microsoft::CodePush::ReactNative::implementation::CodePushConfig': cannot instant |
Something in RNW's codepush support is interacting with cppwinrt wrong. Let's follow up with an issue on that repo to make sure it's tracked. |
I am facing same issue, |
@Rushiraj-karm nope. We did not hear any thing from Microsoft team. |
Facing same issue with: |
I have the exact same issue. Please any solution or workaround? |
@tmjordan Unfortunately I didn't find any working solution. In the case that currently I am not using code-push for especially windows app, only for iOS/Android, I just removed this package from windows platform in react-native.config.js. And waiting for some new updates or whatever |
There is no working solution as of now. we are also waiting for the same. |
@vmoroz any update on this issue? |
Any updates on this issue? Was investigating using Code Push on my team's RNW app but ran into this issue that seems like it's been ongoing for over a year? |
any update on this issue? |
the |
I spent an hour or two with an engineer to take a closer look at this: The header file tries to define a private static instance of this class:
Earlier in the file, there is a
However, that template class is auto-generated and not included in the git repository, so I can't include here. |
that's just the implementation (see the |
@joshuayoes , it seems that the issue is related to the changes in our project templates that use C++/WinRT. We now prohibit instantiation of WinRT classes directly. They must be created with |
C++ code is fixed in this commit in my fork: vmoroz@06ffaba#diff-817e63f5b664a6f031d60feba3a721bbdab4fc21c058b8548faa485b5cfc523a |
Thank you so much for taking a look at this @vmoroz! |
I bump to the same issue. "react-native": "0.72.7", @vmoroz Was your PR sumitted and merged? When can I expect this issue to be resolved? |
thankyou i'll try that with your change |
Problem Description
Hi Team,
I am working on code push for native windows app. I have done the initial set up for the project and got the app working fine in my local. But when I included the code push package, the app is not building.
Steps To Reproduce
Expected Results
The build should be success and the app should be launched fine.
CLI version
6.3.1
Environment
Target Platform Version
No response
Target Device(s)
Desktop
Visual Studio Version
Visual Studio 2022
Build Configuration
Debug
Snack, code example, screenshot, or link to a repository
No response
The text was updated successfully, but these errors were encountered: