Joystream / Joystream/joystream

@joystream/js is NOT compatible client-side

Open
#5,220 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
1.4k
Forks
116
PR merge metrics
No merged PRs in 30d

Description

[@joystream/js](https://github.com/Joystream/joystream/blob/master/joystreamjs/README.md) [InputOutput](https://github.com/Joystream/joystream/blob/master/joystreamjs/src/utils/InputOutput.ts) imports `fs` and can't be loaded in browser context. See [vite](https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility)
```
➜ atlas git:(l1) ✗ rgrep InputOutput node_modules/@joystream/js
node_modules/@joystream/js/lib/cjs/utils/index.js:tslib_1.__exportStar(require("./InputOutput"), exports);
node_modules/@joystream/js/lib/cjs/utils/index.js:tslib_1.__exportStar(require("./InputOutput"), exports);
node_modules/@joystream/js/lib/mjs/utils/index.js:export * from './InputOutput';
node_modules/@joystream/js/lib/mjs/utils/index.js:export * from './InputOutput';
node_modules/@joystream/js/lib/utils/index.d.ts:export * from './InputOutput';
node_modules/@joystream/js/lib/utils/index.d.ts:export * from './InputOutput';
node_modules/@joystream/js/src/utils/index.ts:export * from './InputOutput'
node_modules/@joystream/js/src/utils/index.ts:export * from './InputOutput'
```

Atlas requires it in
- https://github.com/Joystream/atlas/blame/master/packages/atlas/src/joystream-lib/channelPayouts.ts
- https://github.com/Joystream/atlas/blob/master/packages/atlas/src/joystream-lib/extrinsics.ts

=> joystream/atlas#6515

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.