MatrixAI/js-encryptedfs

@ imports don't work with webworkers

Closed this issue · 2 comments

Another issue with @ imports.

The web worker says it can't find the util file which has some common crypto constants. So I have just left it as a standard relative import. This

Full error:

Error: Cannot find module '@encryptedfs/util'
    Require stack:
    - /home/<user>/Documents/github/js-encryptedfs/src/EncryptedFSCrypto.ts
    - /home/<user>/Documents/github/js-encryptedfs/src/EncryptedFSCryptoWorker.ts
    - /home/<user>/Documents/github/js-encryptedfs/[worker eval]

This is undoubtedly an issue with threads.js since it handles loading the web worker files at runtime. I just haven't found a solution as yet.

This is now redundant as encryptedfs no longer uses tsconfig paths.