delvedor / delvedor/appversion
Error: Cannot find module "."
- Dominant language
- JavaScript
- Stars
- 17
- Forks
- 10
- PR merge metrics
- No merged PRs in 30d
Description
When trying to use the In App features to get the current version number I get the error
`Error: Cannot find module "."` in the browsers console, causing the rest of the app to crash.
I have added
`node: {
fs: 'empty'
},`
To my Webpack configuration in order to fix the other current open issue [Missing dependency `fs`](https://github.com/delvedor/appversion/issues)
```
import {
getAppVersion,
getAppVersionSync,
composePattern,
composePatternSync
} from 'appversion';
componentDidMount() {
console.log(getAppVersionSync());
console.log(getAppVersionSync().version);
getAppVersion((err, data) => {
if (err) console.log(err);
console.log(data);
});
console.log(composePatternSync('M.m.p-Ss n-d'));
composePattern('M.m.p-Ss n-d', (ptt) => {
console.log(ptt);
});
}
```
Anyone got any ideas?
Thanks,
Chris
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.