Page MenuHomePhabricator

[cashtab-components] attempted storybook 7 upgrade, not ready
AbandonedPublic

Authored by bytesofman on Mar 25 2023, 04:41.

Details

Reviewers
None
Group Reviewers
Restricted Project
Summary

Accidentally have 2 commits here.

This is just so the 2nd one works.

Test Plan

Review the next diff

Diff Detail

Event Timeline

Tail of the build log:

found 0 vulnerabilities
npm notice 
npm notice New major version of npm available! 7.7.6 -> 9.6.2
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.6.2>
npm notice Run `npm install -g npm@9.6.2` to update!
npm notice 

> cashtab-components@1.0.4 build
> rm -rf dist/ && webpack --mode=production

assets by status 108 KiB [cached] 36 assets
orphan modules 152 KiB [orphan] 28 modules
runtime modules 1.19 KiB 5 modules
built modules 216 KiB [built]
  cacheable modules 63.9 KiB
    modules by path ./node_modules/lodash/*.js 13.9 KiB 14 modules
    modules by path ./node_modules/qr.js/lib/*.js 24.8 KiB 9 modules
    modules by path ./node_modules/prop-types/ 2.6 KiB 3 modules
    modules by path ./node_modules/react/ 1.15 KiB
      ./node_modules/react/jsx-runtime.js 214 bytes [built] [code generated]
      ./node_modules/react/cjs/react-jsx-runtime.production.min.js 962 bytes [built] [code generated]
    ./node_modules/qrcode.react/lib/index.js 19.4 KiB [built] [code generated]
    ./node_modules/object-assign/index.js 2.06 KiB [built] [code generated]
  ./src/index.ts + 28 modules 152 KiB [not cacheable] [built] [code generated]
  external {"commonjs2":"react","commonjs":"react","amd":"react"} 42 bytes [built] [code generated]

ERROR in ./src/atoms/Ticker/Ticker.tsx 1:0-53
Module not found: Error: Can't resolve 'url-loader' in '/work/web/cashtab-components'
 @ ./src/atoms/Ticker/index.ts 1:0-30 2:15-21
 @ ./src/utils/cashtab-helpers.ts 40:0-38 42:71-89 128:35-53
 @ ./src/utils/index.ts 1:0-34 1:0-34
 @ ./src/index.ts 4:0-24 4:0-24

ERROR in ./src/atoms/Ticker/Ticker.tsx 2:0-56
Module not found: Error: Can't resolve 'url-loader' in '/work/web/cashtab-components'
 @ ./src/atoms/Ticker/index.ts 1:0-30 2:15-21
 @ ./src/utils/cashtab-helpers.ts 40:0-38 42:71-89 128:35-53
 @ ./src/utils/index.ts 1:0-34 1:0-34
 @ ./src/index.ts 4:0-24 4:0-24

ERROR in /work/web/cashtab-components/src/components/CashtabBadge/CashtabBadge.stories.tsx
1:28-56
[tsl] ERROR in /work/web/cashtab-components/src/components/CashtabBadge/CashtabBadge.stories.tsx(1,29)
      TS2307: Cannot find module '@storybook/react/types-6-0' or its corresponding type declarations.

ERROR in /work/web/cashtab-components/src/components/CashtabButton/CashtabButton.stories.tsx
1:28-56
[tsl] ERROR in /work/web/cashtab-components/src/components/CashtabButton/CashtabButton.stories.tsx(1,29)
      TS2307: Cannot find module '@storybook/react/types-6-0' or its corresponding type declarations.

2 errors have detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.

webpack 5.76.3 compiled with 4 errors in 6556 ms
npm notice 
npm notice New major version of npm available! 7.7.6 -> 9.6.2
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.6.2>
npm notice Run `npm install -g npm@9.6.2` to update!
npm notice 
Build cashtab-components-tests failed with exit code 1