Skip to content

Caching breaks import/named rule #335

@coreyfarrell

Description

@coreyfarrell

Create test1.js:

export const value = 'test1';

Create test2.js:

import {value} from './test1';

console.log(value);

Run xo, it correctly does not report any errors. Now rename the export in test1.js:

export const value2 = 'test1';

Run xo again, it fails to report any errors. Run touch test2.js && xo, you will see the correct error:


  test2.js:1:9
  ✖  1:9  value not found in ./test1  import/named

  1 error

Locally I just cleared the ~/.xo-cache folder so this resolved the issue for me. Secondary issue, have you considered using ./node_modules/.cache/xo? That would have made it easier for me to find/clear the cache.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions