MatrixAI / js-encryptedfs

Encrypted Filesystem for TypeScript/JavaScript Applications
https://polykey.com
Apache License 2.0
10 stars 3 forks source link

@ imports don't work with webworkers #35

Closed robert-cronin closed 4 years ago

robert-cronin commented 4 years ago

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]
robert-cronin commented 4 years ago

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.

robert-cronin commented 4 years ago

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