A package that I use uses the fs module to read another file with the readFileSync function. But my app throws an error when calling the readFileSync function, because the function is udefined.
This is the error:
TypeError: _$$_REQUIRE(_dependencyMap[6], "fs").readFileSync is not a function. (In '_$$_REQUIRE(_dependencyMap[6], "fs").readFileSync(path)', '_$$_REQUIRE(_dependencyMap[6], "fs").rea_dependencyMap[6], "fs").readFileSync' is undefined)
Below is the conflicting line that uses readFileSync
A package that I use uses the
fs
module to read another file with thereadFileSync
function. But my app throws an error when calling thereadFileSync
function, because the function is udefined. This is the error:Below is the conflicting line that uses
readFileSync
These are my node modules I shim:
I also import the
shim.js
file.