Skip to content

Plugin should ignore corrupted cache #13

@ezolenko

Description

@ezolenko

Sometimes cache gets corrupted, and plugin throws JSON exception (when build interrupted in wrong place).

[10:30:58] Error: ./.cache/0e05bd66949fbb4a048b752195b45acaa4973026/code/cache/1ebf05433ba5ed0b148851cac444c0fb84ba87c1: Unexpected end of JSON input
    at error (D:\source\scr\screeps-ts\node_modules\rollup\dist\rollup.js:170:12)
    at D:\source\scr\screeps-ts\node_modules\rollup\dist\rollup.js:8926:6
    at process._tickDomainCallback (internal/process/next_tick.js:129:7)

Should catch and fallback instead. Alternatively, use transactions.

Workaround -- cleaning cache and rebuilding.

Metadata

Metadata

Assignees

Labels

kind: bugSomething isn't working properlysolution: workaround availableThere is a workaround available for this issue

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions