'import error, ENOENT: no such file or directory, lstat '/../../src/../any-ascii': fs.js (1800:7)

In my expo reactnative app I want a smart search functionality in search box, if the user searches “Ömıç“, the system should search for “Ömıç“, “Omic” and the other similars.

For this I import any-ascii library npm package, https://www.npmjs.com/package/any-ascii

However when I try to use it in the files it throws ;

ENOENT: no such file or directory, lstat '/../apps/mobile/src/Goal/any-ascii': fs.js (1800:7)

I don't figure this out, any idea?

PS: Please DON'T ask :

  • Does it exist ..
  • Did you import ..
  • Do you have the path or file

like that..

The answer is YES for all of them, just answer if you have any idea for the issue. Thanks



Solution 1:[1]

Have you tried to

  1. Clear watchman watches and associated triggers

    watchman watch-del-all

  2. Clear metro cache

    rm -rf ${TMPDIR:-/tmp}/metro-*

  3. restart project

    npm start -- --reset-cache

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Supriya Raghunath