We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f63685 commit 85e4908Copy full SHA for 85e4908
src/link.js
@@ -94,8 +94,9 @@ const linkAssets = (project, assets) => {
94
* If optional argument [packageName] is provided, it's the only one that's checked
95
*/
96
module.exports = function link(config, args) {
97
+ var project;
98
try {
- const project = config.getProjectConfig();
99
+ project = config.getProjectConfig();
100
} catch (err) {
101
log.error('ERRPACKAGEJSON', `No package found. Are you sure it's a React Native project?`);
102
return Promise.reject(err);
0 commit comments