-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Build error on VS2022: ReactNativeFs\ReactPackageProvider.idl(3): error MIDL2025: [msg]syntax error [context]: expecting . near "]" #7
Comments
Hi @flashkicker , I don't know, windows\ReactNativeFs\ReactPackageProvider.idl is a very simple file, coming from the standard RN library template for Windows, created by Have you tried to build the Example app, by the way? |
@birdofpreyru We are currently on RN 0.70 and 0.70.19 for RNW. We are currently in the process of upgrading to RN 0.72 in our project. I did try a complete clean build multiple times on both VS2022 and VS2019 and saw the same error. I also compared the .idl file with other community libraries in our project and they look exactly the same! Haven't tried the example app yet, but will do! |
Ok, @flashkicker , keep me posted if it works for you with 0.72. |
I'm seeing this error when running the example app: All I did was I'm on node version 16.13.1 @birdofpreyru |
Have you done |
It worked after running |
Great! A note for myself — README.md of Example App should be updated, to make it clear how to install & run it. |
Our upgrade to RN 0.72 is taking longer than expected. Is there any way I can modify this fork to be on RN 0.70 just to test it out? @birdofpreyru |
Not that I really know, out of my head, what are the differences between RN 0.70 and 0.72 that prevent it from work. However, the library scaffolding was created using create-react-native-library CLI, and then adding Windows support following these instructions. In theory, you can use these to create library scaffoldings for specific RN versions, 0.70 and 0.72, compare them, see what is the difference, and maybe apply it to the library... In practice, I am not sure it is worth the efforts. |
Hello, first of all great initiative on creating this updated fork for react-native-fs 👏👏👏
I've been trying to install and build this fork on my project and it builds successfully on the JS side, autolinks without any issues as well, however, when when building on VS 2022 I get the following error:
C:\project\node_modules\@dr.pogodin\react-native-fs\windows\ReactNativeFs\ReactPackageProvider.idl(3): error MIDL2025: [msg]syntax error [context]: expecting . near "]"
Any ideas or insight into what this error means and how to move past it would be hugely appreciated! @birdofpreyru
Happy to provide any info that you may need to better understand the error :)
The text was updated successfully, but these errors were encountered: