I am attempting to add the Firestore client SDK to an Oracle JET project. I have run the following command to add the package to my project:
npm install [email protected] --save
After this, I know that the path_mapping.json file needs to be updated, however, I am unsure of what it should contain.
Path_mapping.json file:
"firebase/firestore": {
"cdn": "3rdparty",
"cwd": "node_modules/@firebase/firestore/dist",
"debug": {
"src": ["*.js", "*.map"],
"path": "libs/@firebase/firestore/index.esm2017.js"
},
"release": {
"src": ["*.js", "*.map"],
"path": "libs/@firebase/firestore/index.esm2017.js"
}
}
TS file:
import { collection, getDocs, getFirestore } from "firebase/firestore";
Can I utilize the Firestore client SDK in an Oracle JET project? If so, what should the path_mapping.json file look like to add it?
2
Answers
as You trying to achieve the connectivity
aslo, make sure that paths in the path_mapping.json file match the actual paths in your node_modules directory.
You can add your SDK oracle project through Google cloud firebase https://stackoverflow.com/questions/tagged/google-cloud-firestore