[Output] Error: Unable to resolve module prop-types from <PROJECT_ROOT>\node_modules\react-native-pdftron\index.js: prop-types could not be found within the project.
[Output] If you are sure the module exists, try these steps:
[Output] 1. Clear watchman watches: watchman watch-del-all
[Output] 2. Delete node_modules and run yarn install
[Output] 3. Reset Metro’s cache: yarn start --reset-cache
[Output] 4. Remove the cache: rm -rf /tmp/metro-*
I am getting below error when create widget using typescript. Earlier I tried by creating a widget using Javascript and got the error mentioned above.
Could not find a declaration file for module ‘react-native-pdftron’. ‘C:/workdir/Work/Mendix/PracticeApps/TestApp/CustomWidgets/testPDFTron/node_modules/react-native-pdftron/index.js’ implicitly has an ‘any’ type.
Try npm i --save-dev @types/react-native-pdftron if it exists or add a new declaration (.d.ts) file containing declare module 'react-native-pdftron';ts(7016)
I am using Command Line to build. Are you using the correct Java to build?
Mendix uses Adopt Open JDK and is installed at following location C:\Program Files\AdoptOpenJDK\jdk-11.0.3.7-hotspot.
As mentioned in forum topic, Clean the deployment directory using following menu option App → Clean Deployment Directory and then App → Deploy for Eclipse and then run the command to build the bundle
@mohan.kathireddy thanks. Just an update for you, we are also experiencing issues and we are in contact with Mendix support. We will let you know if we hear anything from them. Thanks.
@mohan.kathireddy I’m stuck on the part that PDFTron needs to alter original Java/Obj-C code, but the studio only provide JS bundle. So it’s unsure how to create a module that alters Java/Obj-C code.
Mendix support said they are looking into it and will reply as soon as they can.
@Shirley_G , thanks for the update. This has become critical for me now, Is there a way that you can follow up and get a quick solution and let me know whether its possible to integrate PDFTron React Native with Mendix Native or not?
@mohan.kathireddy could you send me what you have so far? At the moment I’m not even sure if I’m on the right track as I’m new to Mendix. I did follow up with Mendix again to see if they can give a response. Thanks.