Skip to content

Bug whith "ext-gen viewpackage <package>" #183

@afurlane

Description

@afurlane

Affected version: 6.7.0
Problem: if run command gives the error that app.json is not found. That's because the following function does not work under windows:
**function getAppJson(CurrWorkingDir) **
The function is in generate\utilGen.js
To fix it:
var path = require('path');
function getAppJson(CurrWorkingDir) {
var appJsonFile = ''
var appJson = path.join(CurrWorkingDir, 'app.json')
if (fs.existsSync(appJson)) {
appJsonFile = appJson
}
return appJsonFile
}

Hope to be of help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions