cryptpad / cryptpad/chainpad-crypto
Fails to complie in typescript
- Dominant language
- JavaScript
- Stars
- 5
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
```
Failed to compile.
./node_modules/chainpad-crypto/crypto.js
Module not found: Can't resolve '/bower_components/tweetnacl/nacl-fast.min.js' in '../node_modules/chainpad-crypto'
```
I think the issue is this part of the built output of `crypto.js`:
```javascript
if (typeof(module) !== 'undefined' && module.exports) {
module.exports = factory(require('tweetnacl'));
} else if ((typeof(define) !== 'undefined' && define !== null) && (define.amd !== null)) {
define([
'/bower_components/tweetnacl/nacl-fast.min.js',
], function () {
return factory(window.nacl);
});
} else {
window.chainpad_crypto = factory(window.nacl);
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.