appversion
appversion copied to clipboard
Error: Cannot find module "."
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
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
Hello! Currently I have no time to fix this, feel free to send a pr!