Closed Darkproduct closed 4 months ago
More info that was requested in the previous iterations of this error:
Versions:
"react": "18.2.0",
"react-native": "0.74.1",
"react-native-webview": "13.10.2",
"react-native-windows": "0.74.6"
$ npx react-native autolink-windows --logging
ℹ Running x64 node on a x64 machine
(node:9476) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
⠋ Auto-linking...
Parsing project...
Found Windows app project, config:
{
folder: '<Path>\\App',
sourceDir: 'windows',
solutionFile: 'App.sln',
project: {
projectFile: 'App\\App.vcxproj',
projectName: 'App',
projectLang: 'cpp',
projectGuid: '{7e27a41e-cd94-498f-b937-b3ae5d119c84}'
},
experimentalFeatures: {
UseHermes: 'true',
UseWinUI3: 'false',
UseExperimentalNuget: 'false',
ReactExperimentalFeaturesSet: 'true'
}
}
Parsing dependencies...
react-native-webview has Windows implementation, config:
{
folder: '<Path>\\App\\node_modules\\react-native-webview',
projects: [
{
projectFile: 'ReactNativeWebView\\ReactNativeWebView.vcxproj',
directDependency: true,
projectName: 'ReactNativeWebView',
projectLang: 'cpp',
projectGuid: '{00AA3765-C6A0-4713-B3F9-BFE47B9C83F5}',
cppHeaders: [Array],
cppPackageProviders: [Array],
csNamespaces: [Array],
csPackageProviders: [Array]
}
],
solutionFile: 'ReactNativeWebView.sln',
nugetPackages: [],
sourceDir: 'windows'
}
Adding react-native-webview.
Calculating AutolinkedNativeModules.g.cpp...
Reading AutolinkedNativeModules.g.cpp...
⠙ Auto-linking...AutolinkedNativeModules.g.cpp needs to be updated.
Writing AutolinkedNativeModules.g.cpp...
Calculating AutolinkedNativeModules.g.props...
Reading AutolinkedNativeModules.g.props...
No changes to AutolinkedNativeModules.g.props.
Calculating AutolinkedNativeModules.g.targets...
Reading AutolinkedNativeModules.g.targets...
AutolinkedNativeModules.g.targets needs to be updated.
Writing AutolinkedNativeModules.g.targets...
Calculating App.sln changes...
Processing ReactNativeWebView.vcxproj...
Missing project entry block, inserting.
Missing Debug|x64 config block.
Missing Debug|x64 config block.
Missing Debug|Win32 config block.
Missing Debug|Win32 config block.
Missing Debug|ARM64 config block.
Missing Debug|ARM64 config block.
Missing Release|x64 config block.
Missing Release|x64 config block.
Missing Release|Win32 config block.
Missing Release|Win32 config block.
Missing Release|ARM64 config block.
Missing Release|ARM64 config block.
App.sln needs to be updated.
Writing changes to App.sln...
✔ Auto-linking...
Success: Auto-linking changes completed. (108ms)
@TatianaKapos can you see if this works with a new project? Pretty sure we have it working in Gallery.
@jonthysell tested on a new app on version 0.74.7, everything works for me! We also have a working example in Gallery.
@Darkproduct I noticed you don't have yarn installed, can you go through these steps to make sure you have all the development dependencies? https://microsoft.github.io/react-native-windows/docs/rnw-dependencies
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 7 days of this comment.
Problem Description
Next iteration of #7758 & #7793
Steps To Reproduce
npm install react-native-webview
npx react-native run-windows
Expected Results
I expect a webview with the react native web page displayed. Instead, I get the "RCTWebView not found" error.
CLI version
13.6.6
Environment
Target Platform Version
10.0.19041
Target Device(s)
Desktop
Visual Studio Version
Visual Studio 2022
Build Configuration
Debug
Snack, code example, screenshot, or link to a repository
No response