Skip to content

Need a help :) #14

@serjevski

Description

@serjevski

I tried to compile your tool myself but receive an error:

> daxfb-calculator@1.0.21 build
> run-s type-check build-data build-docs build-only


> daxfb-calculator@1.0.21 type-check
> tsc --noEmit && vue-tsc --noEmit -p site

data/evospace/converter.ts:294:50 - error TS2345: Argument of type 'string | false' is not assignable to parameter of type 'string'.
  Type 'boolean' is not assignable to type 'string'.

294     const patchedDataJson: JsonData = JSON.parse(patchedData);
                                                     ~~~~~~~~~~~

data/evospace/static/patch-helper.ts:35:59 - error TS2345: Argument of type 'string | false' is not assignable to parameter of type 'string | ArrayBufferView'.
  Type 'boolean' is not assignable to type 'string | ArrayBufferView'.

35         fs.writeFileSync(path.join(_static, 'data.json'), staticDataJson, 'utf8');
                                                             ~~~~~~~~~~~~~~


Found 2 errors in 2 files.

Errors  Files
     1  data/evospace/converter.ts:294
     1  data/evospace/static/patch-helper.ts:35
ERROR: "type-check" exited with 2.

Unfortunately, I'm completely dumb with JS :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions