Open rlembo06 opened 5 years ago
Hey @rlembo06, thanks for opening an issue! This library requires access to the filesystem which wouldn't normally be available in the browser like this. The specific error is likely due to the fs
shim not being able to cover all aspects of fs
(since its running in browser).
Maybe you could describe what you are trying to do?
I have the same issue. I am trying to embed git info in a React module. I used create-react-app
to begin this project.
const someModule = () => {
...
<h5>{gitInfo()}</h5>
...
const gitInfo = () => {
const info = getRepoInfo();
return `${info.tag}-${info.abbreviatedSha}-${info.authorDate}`;
};
}
export default someModule;
Hi, when import your package on React project, i receive this error