-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
Needs: Triage 🔍New issue that needs to be reviewed by the issue management team (label applied by bot)New issue that needs to be reviewed by the issue management team (label applied by bot)bug
Description
Problem Description
Build fails to enable developer mode with the following error message:
Export-ModuleMember : The Export-ModuleMember cmdlet can only be called from inside a module.
At D:\~\node_modules\@react-native-windows\cli\src\powershell\WindowsStoreAppUtils.ps1:455 char:1
+ Export-ModuleMember -Function @(
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (:) [Export-ModuleMember], InvalidOperationException
+ FullyQualifiedErrorId : Modules_CanOnlyExecuteExportModuleMemberInsideAModule,Microsoft.PowerShell.Commands.ExportModuleMemberCommand
Steps To Reproduce
- Attempt to build/run app:
yarn react-native run-windows
Expected Results
No response
CLI version
19.1.1
Environment
System:
OS: Windows 11 10.0.26200
CPU: "(32) x64 AMD Ryzen Threadripper PRO 3955WX 16-Cores "
Memory: 112.73 GB / 127.86 GB
Binaries:
Node:
version: 22.19.0
path: C:\Program Files\nodejs\node.EXE
Yarn:
version: 4.10.3
path: C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm:
version: 10.9.3
path: C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK:
AllowDevelopmentWithoutDevLicense: Enabled
AllowAllTrustedApps: Enabled
Versions:
- 10.0.19041.0
- 10.0.22621.0
- 10.0.26100.0
IDEs:
Android Studio: Not Found
Visual Studio:
- 17.14.36623.8 (Visual Studio Community 2022)
Languages:
Java: Not Found
Ruby: Not Found
npmPackages:
"@react-native-community/cli": Not Found
react: Not Found
react-native: Not Found
react-native-windows: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: false
newArchEnabled: true
iOS:
hermesEnabled: Not found
newArchEnabled: Not foundCommunity Modules
n/a
Target React Native Architecture
Both Architectures
Target Platform Version
= 10.0.26100
Visual Studio Version
Visual Studio 2022
Build Configuration
Debug
Snack, code example, screenshot, or link to a repository
Feel free to use this for repro: microsoft/react-native-test-app#2589
Ferry-200
Metadata
Metadata
Assignees
Labels
Needs: Triage 🔍New issue that needs to be reviewed by the issue management team (label applied by bot)New issue that needs to be reviewed by the issue management team (label applied by bot)bug