dxos-deprecated / sdk

DXOS SDK and tools.
GNU Affero General Public License v3.0
0 stars 2 forks source link

Payments client and bot changes. #506

Open ashwinphatak opened 3 years ago

ashwinphatak commented 3 years ago

Part of https://github.com/wirelineio/testnet/issues/50.

ashwinphatak commented 3 years ago

yarn build:storybook in CI errors but it's not clear from the console output exactly why.

 | <s> [webpack.Progress] 70% building 3381/3384 modules 3 active /Users/ashwinp/projects/dxos/sdk/node_modules/es-get-iterator/node_modules/isarray/index.js
 | <s> [webpack.Progress] 70% building 3382/3384 modules 2 active /Users/ashwinp/projects/dxos/sdk/node_modules/es-get-iterator/node_modules/isarray/index.js
 | <s> [webpack.Progress] 70% building 3382/3385 modules 3 active /Users/ashwinp/projects/dxos/sdk/node_modules/call-bind/index.js
 | <s> [webpack.Progress] 70% building 3383/3385 modules 2 active /Users/ashwinp/projects/dxos/sdk/node_modules/call-bind/index.js
 | <s> [webpack.Progress] 70% building 3384/3385 modules 1 active /Users/ashwinp/projects/dxos/sdk/node_modules/call-bind/index.js
 | <s> [webpack.Progress] 70% building 3385/3385 modules 0 active
 | <s> [webpack.Progress] 70% building 3385/3386 modules 1 active /Users/ashwinp/projects/dxos/sdk/node_modules/side-channel/node_modules/es-abstract/helpers/callBind.js
 | <s> [webpack.Progress] 70% building 3386/3386 modules 0 active
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
 | `yarn build:storybook` failed with exit code 1
Stopping 1 active children
Aborted execution due to previous error
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ashwinphatak commented 3 years ago
$ cd packages/react-appkit
$ yarn build:storybook
...
...
53% building 361/388 modules 27 active /Users/ashwinp/projects/dxos/sdk/node_modules/@material-ui/system/esm/grid.jsℹ 「atl」: Using typescript@4.0.5 from typescript
ℹ 「atl」: Using tsconfig.json from /Users/ashwinp/projects/dxos/sdk/packages/react-appkit/tsconfig.json
70% building 1595/1627 modules 32 active /Users/ashwinp/projects/dxos/sdk/node_modules/@ardatan/aggregate-error/node_modules/tslib/tslib.es6.jsERR! => Failed to build the preview
ERR! Module not found: Error: Can't resolve 'fs' in '/Users/ashwinp/projects/dxos/sdk/node_modules/ts-nats/lib'
(node:37330) UnhandledPromiseRejectionWarning: ModuleNotFoundError: Module not found: Error: Can't resolve 'fs' in '/Users/ashwinp/projects/dxos/sdk/node_modules/ts-nats/lib'
    at /Users/ashwinp/projects/dxos/sdk/node_modules/webpack/lib/Compilation.js:925:10
    at /Users/ashwinp/projects/dxos/sdk/node_modules/webpack/lib/NormalModuleFactory.js:401:22
    at /Users/ashwinp/projects/dxos/sdk/node_modules/webpack/lib/NormalModuleFactory.js:130:21

Try to override webpack config as per https://storybooks.netlify.app/configurations/custom-webpack-config/#extend-mode-deprecated doesn't seem to work.

module.exports = {
  node: {
    net: 'empty',
    tls: 'empty'
  }
};