cryptpad / cryptpad/chainpad-crypto

Fails to complie in typescript

Open
#1 2 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.