CryptKeeperZK / crypt-keeper-extension

🌐 🔌 💀 CryptKeeper browser extension is a zero knowledge identity management and proof generation tool.
https://ckdemo.appliedzkp.org
MIT License
34 stars 8 forks source link

Update React / other dependencies #41

Closed 0xisk closed 1 year ago

0xisk commented 1 year ago

Update react.js from v16 to v18 with updating the other dependencies.

0xisk commented 1 year ago

After installing npm-check-updates package, and then running ncu -u

Upgrading /package.json
[====================] 44/44 100%

 @interep/identity          ^0.1.1  →    ^0.2.0
 @types/classnames         ^2.2.11  →    ^2.3.0
 @types/react             ^16.9.52  →  ^18.0.25
 @types/react-dom          ^16.9.8  →   ^18.0.8
 @types/react-router-dom    ^5.1.7  →    ^5.3.3
 @types/redux-logger        ^3.0.8  →    ^3.0.9
 @zk-kit/protocols          ^1.8.2  →   ^1.11.1
 axios                     ^0.24.0  →    ^1.1.3
 bigint-conversion         ^2.1.12  →    ^2.3.0
 classnames                 ^2.2.6  →    ^2.3.2
 commitizen                 ^4.2.4  →    ^4.2.5
 copy-to-clipboard          ^3.3.1  →    ^3.3.2
 copy-webpack-plugin        ^6.4.1  →   ^11.0.0
 eslint                     ^8.3.0  →   ^8.27.0
 ethers                     ^5.7.0  →    ^5.7.2
 eventemitter2              ^6.4.4  →    ^6.4.9
 express                   ^4.17.1  →   ^4.18.2
 jest                      ^27.5.1  →   ^29.3.1
 link-preview-js           ^2.1.13  →    ^3.0.4
 prettier                   ^2.5.0  →    ^2.7.1
 react                    ^16.13.1  →   ^18.2.0
 react-dom                ^16.13.1  →   ^18.2.0
 react-jazzicon             ^0.1.3  →    ^1.0.4
 react-redux                ^7.2.3  →    ^8.0.5
 react-router               ^5.2.0  →    ^6.4.3
 react-router-dom           ^5.2.0  →    ^6.4.3
 redux                      ^4.0.5  →    ^4.2.0
 redux-thunk                ^2.3.0  →    ^2.4.2
 web3                       ^1.5.3  →    ^1.8.0
 webpack                   ^5.52.0  →   ^5.75.0
 webpack-merge              ^4.2.2  →    ^5.8.0
0xisk commented 1 year ago

Got 58 Errors after updating all packages,

ERROR in ./node_modules/circomlibjs/node_modules/wasmbuilder/src/protoboard.js 23:15-32
Module not found: Error: Can't resolve 'assert' in '/node_modules/circomlibjs/node_modules/wasmbuilder/src'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "assert": require.resolve("assert/") }'
        - install 'assert'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "assert": false }
 @ ./node_modules/circomlibjs/node_modules/wasmbuilder/index.js 22:0-60
 @ ./node_modules/circomlibjs/node_modules/ffjavascript/build/main.cjs 10:18-40
 @ ./node_modules/circomlibjs/src/babyjub.js 1:16-47 2:15-45 3:14-43
 @ ./node_modules/circomlibjs/index.js 1:0-42
 @ ./node_modules/@zk-kit/identity/dist/index.node.js 14:18-40
 @ ./src/background/identity-factory.ts 6:19-46
 @ ./src/background/zk-kepeer.ts 18:43-72
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in ./node_modules/circomlibjs/src/poseidon.js 1:15-32
Module not found: Error: Can't resolve 'assert' in '/node_modules/circomlibjs/src'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "assert": require.resolve("assert/") }'
        - install 'assert'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "assert": false }
 @ ./node_modules/circomlibjs/index.js 10:0-44
 @ ./node_modules/@zk-kit/identity/dist/index.node.js 14:18-40
 @ ./src/background/identity-factory.ts 6:19-46
 @ ./src/background/zk-kepeer.ts 18:43-72
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in ./node_modules/circomlibjs/src/poseidon_slow.js 1:15-32
Module not found: Error: Can't resolve 'assert' in '/node_modules/circomlibjs/src'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "assert": require.resolve("assert/") }'
        - install 'assert'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "assert": false }
 @ ./node_modules/circomlibjs/index.js 11:0-54
 @ ./node_modules/@zk-kit/identity/dist/index.node.js 14:18-40
 @ ./src/background/identity-factory.ts 6:19-46
 @ ./src/background/zk-kepeer.ts 18:43-72
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in ./node_modules/ethereumjs-util/dist.browser/account.js 23:31-48
Module not found: Error: Can't resolve 'assert' in '/node_modules/ethereumjs-util/dist.browser'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "assert": require.resolve("assert/") }'
        - install 'assert'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "assert": false }
 @ ./node_modules/ethereumjs-util/dist.browser/index.js 25:13-33
 @ ./node_modules/web3-utils/lib/utils.js 25:21-47
 @ ./node_modules/web3-utils/lib/index.js 24:12-33
 @ ./node_modules/circomlibjs/src/evmasm.js 6:18-39
 @ ./node_modules/circomlibjs/index.js 3:0-40
 @ ./node_modules/@zk-kit/identity/dist/index.node.js 14:18-40
 @ ./src/background/identity-factory.ts 6:19-46
 @ ./src/background/zk-kepeer.ts 18:43-72
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in ./node_modules/ethereumjs-util/dist.browser/address.js 7:31-48
Module not found: Error: Can't resolve 'assert' in '/node_modules/ethereumjs-util/dist.browser'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "assert": require.resolve("assert/") }'
        - install 'assert'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "assert": false }
 @ ./node_modules/ethereumjs-util/dist.browser/index.js 29:13-33
 @ ./node_modules/web3-utils/lib/utils.js 25:21-47
 @ ./node_modules/web3-utils/lib/index.js 24:12-33
 @ ./node_modules/circomlibjs/src/evmasm.js 6:18-39
 @ ./node_modules/circomlibjs/index.js 3:0-40
 @ ./node_modules/@zk-kit/identity/dist/index.node.js 14:18-40
 @ ./src/background/identity-factory.ts 6:19-46
 @ ./src/background/zk-kepeer.ts 18:43-72
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in ./node_modules/ethereumjs-util/dist.browser/object.js 7:31-48
Module not found: Error: Can't resolve 'assert' in '/node_modules/ethereumjs-util/dist.browser'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "assert": require.resolve("assert/") }'
        - install 'assert'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "assert": false }
 @ ./node_modules/ethereumjs-util/dist.browser/index.js 45:13-32
 @ ./node_modules/web3-utils/lib/utils.js 25:21-47
 @ ./node_modules/web3-utils/lib/index.js 24:12-33
 @ ./node_modules/circomlibjs/src/evmasm.js 6:18-39
 @ ./node_modules/circomlibjs/index.js 3:0-40
 @ ./node_modules/@zk-kit/identity/dist/index.node.js 14:18-40
 @ ./src/background/identity-factory.ts 6:19-46
 @ ./src/background/zk-kepeer.ts 18:43-72
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in ./node_modules/follow-redirects/index.js 6:13-30
Module not found: Error: Can't resolve 'assert' in '/node_modules/follow-redirects'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "assert": require.resolve("assert/") }'
        - install 'assert'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "assert": false }
 @ ./node_modules/axios/dist/node/axios.cjs 9:24-51
 @ ./src/background/services/protocols/rln.ts 8:32-48
 @ ./src/background/zk-kepeer.ts 16:30-65
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in ./src/ui/components/Button/index.tsx 12:0-24
Module not found: Error: Can't resolve 'style-loader' in ''
 @ ./src/ui/pages/Onboarding/index.tsx 27:30-66
 @ ./src/ui/pages/Popup/index.tsx 34:37-72
 @ ./src/ui/popup.tsx 28:32-62

ERROR in ./src/ui/components/Button/index.tsx 14:37-80
Module not found: Error: Can't resolve 'file-loader' in ''
 @ ./src/ui/pages/Onboarding/index.tsx 27:30-66
 @ ./src/ui/pages/Popup/index.tsx 34:37-72
 @ ./src/ui/popup.tsx 28:32-62

ERROR in ./src/ui/components/Checkbox/index.tsx 10:0-23
Module not found: Error: Can't resolve 'style-loader' in ''
 @ ./src/ui/components/ConfirmRequestModal/index.tsx 38:35-73
 @ ./src/ui/pages/Popup/index.tsx 36:46-95
 @ ./src/ui/popup.tsx 28:32-62

ERROR in ./src/ui/components/ConfirmRequestModal/index.tsx 33:0-31
Module not found: Error: Can't resolve 'style-loader' in ''
 @ ./src/ui/pages/Popup/index.tsx 36:46-95
 @ ./src/ui/popup.tsx 28:32-62

ERROR in ./src/ui/components/Dropdown/index.tsx 12:0-26
Module not found: Error: Can't resolve 'style-loader' in ''
 @ ./src/ui/components/ConfirmRequestModal/index.tsx 35:35-73
 @ ./src/ui/pages/Popup/index.tsx 36:46-95
 @ ./src/ui/popup.tsx 28:32-62

ERROR in ./src/ui/components/FullModal/index.tsx 10:0-28
Module not found: Error: Can't resolve 'style-loader' in ''
 @ ./src/ui/components/ConfirmRequestModal/index.tsx 27:33-72
 @ ./src/ui/pages/Popup/index.tsx 36:46-95
 @ ./src/ui/popup.tsx 28:32-62

ERROR in ./src/ui/components/Header/index.tsx 27:35-72
Module not found: Error: Can't resolve 'file-loader' in ''
 @ ./src/ui/pages/Home/index.tsx 32:33-69
 @ ./src/ui/pages/Popup/index.tsx 30:31-60
 @ ./src/ui/popup.tsx 28:32-62

ERROR in ./src/ui/components/Header/index.tsx 28:37-76
Module not found: Error: Can't resolve 'file-loader' in ''
 @ ./src/ui/pages/Home/index.tsx 32:33-69
 @ ./src/ui/pages/Popup/index.tsx 30:31-60
 @ ./src/ui/popup.tsx 28:32-62

ERROR in ./src/ui/components/Header/index.tsx 33:0-24
Module not found: Error: Can't resolve 'style-loader' in ''
 @ ./src/ui/pages/Home/index.tsx 32:33-69
 @ ./src/ui/pages/Popup/index.tsx 30:31-60
 @ ./src/ui/popup.tsx 28:32-62

ERROR in ./src/ui/components/Icon/index.tsx 30:0-22
Module not found: Error: Can't resolve 'style-loader' in ''
 @ ./src/ui/pages/Home/index.tsx 30:31-65
 @ ./src/ui/pages/Popup/index.tsx 30:31-60
 @ ./src/ui/popup.tsx 28:32-62

ERROR in ./src/ui/components/Input/index.tsx 7:0-23
Module not found: Error: Can't resolve 'style-loader' in ''
 @ ./src/ui/pages/Onboarding/index.tsx 30:32-67
 @ ./src/ui/pages/Popup/index.tsx 34:37-72
 @ ./src/ui/popup.tsx 28:32-62

ERROR in ./src/ui/components/Menuable/index.tsx 27:0-26
Module not found: Error: Can't resolve 'style-loader' in ''
 @ ./src/ui/pages/Home/index.tsx 39:35-73
 @ ./src/ui/pages/Popup/index.tsx 30:31-60
 @ ./src/ui/popup.tsx 28:32-62

ERROR in ./src/ui/components/Modal/index.tsx 8:0-23
Module not found: Error: Can't resolve 'style-loader' in ''
 @ ./src/ui/components/FullModal/index.tsx 8:32-67
 @ ./src/ui/components/ConfirmRequestModal/index.tsx 27:33-72
 @ ./src/ui/pages/Popup/index.tsx 36:46-95
 @ ./src/ui/popup.tsx 28:32-62

ERROR in ./src/ui/pages/Home/index.tsx 35:0-22
Module not found: Error: Can't resolve 'style-loader' in ''
 @ ./src/ui/pages/Popup/index.tsx 30:31-60
 @ ./src/ui/popup.tsx 28:32-62

ERROR in ./src/ui/pages/Login/index.tsx 26:0-23
Module not found: Error: Can't resolve 'style-loader' in ''
 @ ./src/ui/pages/Popup/index.tsx 35:32-62
 @ ./src/ui/popup.tsx 28:32-62

ERROR in ./src/ui/pages/Login/index.tsx 29:35-72
Module not found: Error: Can't resolve 'file-loader' in ''
 @ ./src/ui/pages/Popup/index.tsx 35:32-62
 @ ./src/ui/popup.tsx 28:32-62

ERROR in ./src/ui/pages/Onboarding/index.tsx 26:0-28
Module not found: Error: Can't resolve 'style-loader' in ''
 @ ./src/ui/pages/Popup/index.tsx 34:37-72
 @ ./src/ui/popup.tsx 28:32-62

ERROR in ./src/ui/pages/Onboarding/index.tsx 29:35-72
Module not found: Error: Can't resolve 'file-loader' in ''
 @ ./src/ui/pages/Popup/index.tsx 34:37-72
 @ ./src/ui/popup.tsx 28:32-62

ERROR in ./src/ui/pages/Popup/index.tsx 28:0-23
Module not found: Error: Can't resolve 'style-loader' in ''
 @ ./src/ui/popup.tsx 28:32-62

ERROR in ./node_modules/axios/dist/node/axios.cjs 10:13-28
Module not found: Error: Can't resolve 'zlib' in '/node_modules/axios/dist/node'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "zlib": require.resolve("browserify-zlib") }'
        - install 'browserify-zlib'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "zlib": false }
 @ ./src/background/services/protocols/rln.ts 8:32-48
 @ ./src/background/zk-kepeer.ts 16:30-65
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in /src/background/backgroundPage.ts
./src/background/backgroundPage.ts 13:2-8
[tsl] ERROR in /src/background/backgroundPage.ts(13,3)
      TS2304: Cannot find name 'chrome'.

ERROR in /src/background/identity-factory.test.ts
4:0-8
[tsl] ERROR in /src/background/identity-factory.test.ts(4,1)
      TS2582: Cannot find name 'describe'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.

ERROR in /src/background/identity-factory.test.ts
5:4-6
[tsl] ERROR in /src/background/identity-factory.test.ts(5,5)
      TS2582: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.

ERROR in /src/background/identity-factory.test.ts
8:14-20
[tsl] ERROR in /src/background/identity-factory.test.ts(8,15)
      TS2304: Cannot find name 'expect'.

ERROR in /src/background/identity-factory.test.ts
11:4-6
[tsl] ERROR in /src/background/identity-factory.test.ts(11,5)
      TS2582: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.

ERROR in /src/background/identity-factory.test.ts
15:8-14
[tsl] ERROR in /src/background/identity-factory.test.ts(15,9)
      TS2304: Cannot find name 'expect'.

ERROR in /src/background/identity-factory.test.ts
16:8-14
[tsl] ERROR in /src/background/identity-factory.test.ts(16,9)
      TS2304: Cannot find name 'expect'.

ERROR in /src/background/identity-factory.test.ts
17:8-14
[tsl] ERROR in /src/background/identity-factory.test.ts(17,9)
      TS2304: Cannot find name 'expect'.

ERROR in /src/background/identity-factory.test.ts
20:4-6
[tsl] ERROR in /src/background/identity-factory.test.ts(20,5)
      TS2582: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.

ERROR in /src/background/identity-factory.test.ts
23:14-20
[tsl] ERROR in /src/background/identity-factory.test.ts(23,15)
      TS2304: Cannot find name 'expect'.

ERROR in /src/background/identity-factory.ts
./src/background/identity-factory.ts 26:10-18
[tsl] ERROR in /src/background/identity-factory.ts(26,11)
      TS2740: Type 'Identity' is missing the following properties from type 'ZkIdentity': _identityTrapdoor, _identityNullifier, _secret, getSecret, and 3 more.
 @ ./src/background/zk-kepeer.ts 18:43-72
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in /src/background/controllers/browser-utils.ts
./src/background/controllers/browser-utils.ts 29:4-10
[tsl] ERROR in /src/background/controllers/browser-utils.ts(29,5)
      TS2304: Cannot find name 'chrome'.
 @ ./src/background/zk-kepeer.ts 19:40-78
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in /src/background/services/protocols/rln.ts
./src/background/services/protocols/rln.ts 42:20-38
[tsl] ERROR in /src/background/services/protocols/rln.ts(42,21)
      TS2554: Expected 4 arguments, but got 5.
 @ ./src/background/zk-kepeer.ts 16:30-65
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in /src/background/services/protocols/semaphore.ts
./src/background/services/protocols/semaphore.ts 7:4-17
[tsl] ERROR in /src/background/services/protocols/semaphore.ts(7,5)
      TS2305: Module '"@zk-kit/protocols"' has no exported member 'genSignalHash'.
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in /src/background/services/protocols/semaphore.ts
./src/background/services/protocols/semaphore.ts 51:20-38
[tsl] ERROR in /src/background/services/protocols/semaphore.ts(51,21)
      TS2554: Expected 4 arguments, but got 5.
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in /src/background/services/protocols/semaphore.ts
./src/background/services/protocols/semaphore.ts 65:88-97
[tsl] ERROR in /src/background/services/protocols/semaphore.ts(65,89)
      TS2345: Argument of type 'SemaphoreFullProof' is not assignable to parameter of type 'Proof'.
  Type 'SemaphoreFullProof' is missing the following properties from type 'Proof': pi_a, pi_b, pi_c, protocol, curve
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in /src/ui/components/CreateIdentityModal/index.tsx
./src/ui/components/CreateIdentityModal/index.tsx 31:27-60
[tsl] ERROR in /src/ui/components/CreateIdentityModal/index.tsx(31,28)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<any>' is not assignable to parameter of type 'AnyAction'.
  Property 'type' is missing in type '(dispatch: Dispatch) => Promise<any>' but required in type 'AnyAction'.
 @ ./src/ui/pages/Home/index.tsx 37:46-95
 @ ./src/ui/pages/Popup/index.tsx 30:31-60
 @ ./src/ui/popup.tsx 28:32-62

ERROR in /src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 30:13-30
[tsl] ERROR in /src/ui/pages/Home/index.tsx(30,14)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
  Property 'type' is missing in type '(dispatch: Dispatch) => Promise<void>' but required in type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 30:31-60
 @ ./src/ui/popup.tsx 28:32-62

ERROR in /src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 31:13-30
[tsl] ERROR in /src/ui/pages/Home/index.tsx(31,14)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
  Property 'type' is missing in type '(dispatch: Dispatch) => Promise<void>' but required in type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 30:31-60
 @ ./src/ui/popup.tsx 28:32-62

ERROR in /src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 184:13-50
[tsl] ERROR in /src/ui/pages/Home/index.tsx(184,14)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<any>' is not assignable to parameter of type 'AnyAction'.
  Property 'type' is missing in type '(dispatch: Dispatch) => Promise<any>' but required in type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 30:31-60
 @ ./src/ui/popup.tsx 28:32-62

ERROR in /src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 188:21-62
[tsl] ERROR in /src/ui/pages/Home/index.tsx(188,22)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<any>' is not assignable to parameter of type 'AnyAction'.
  Property 'type' is missing in type '(dispatch: Dispatch) => Promise<any>' but required in type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 30:31-60
 @ ./src/ui/popup.tsx 28:32-62

ERROR in /src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 193:19-53
[tsl] ERROR in /src/ui/pages/Home/index.tsx(193,20)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<any>' is not assignable to parameter of type 'AnyAction'.
  Property 'type' is missing in type '(dispatch: Dispatch) => Promise<any>' but required in type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 30:31-60
 @ ./src/ui/popup.tsx 28:32-62

ERROR in /src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 212:13-30
[tsl] ERROR in /src/ui/pages/Home/index.tsx(212,14)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 30:31-60
 @ ./src/ui/popup.tsx 28:32-62

ERROR in /src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 5:9-17
[tsl] ERROR in /src/ui/pages/Popup/index.tsx(5,10)
      TS2724: '"react-router"' has no exported member named 'Redirect'. Did you mean 'redirect'?
 @ ./src/ui/popup.tsx 28:32-62

ERROR in /src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 5:26-32
[tsl] ERROR in /src/ui/pages/Popup/index.tsx(5,27)
      TS2305: Module '"react-router"' has no exported member 'Switch'.
 @ ./src/ui/popup.tsx 28:32-62

ERROR in /src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 23:31-44
[tsl] ERROR in /src/ui/pages/Popup/index.tsx(23,32)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
  Property 'type' is missing in type '(dispatch: Dispatch) => Promise<void>' but required in type 'AnyAction'.
 @ ./src/ui/popup.tsx 28:32-62

ERROR in /src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 24:31-58
[tsl] ERROR in /src/ui/pages/Popup/index.tsx(24,32)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/popup.tsx 28:32-62

ERROR in /src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 34:17-44
[tsl] ERROR in /src/ui/pages/Popup/index.tsx(34,18)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
  Property 'type' is missing in type '(dispatch: Dispatch) => Promise<void>' but required in type 'AnyAction'.
 @ ./src/ui/popup.tsx 28:32-62

ERROR in /src/util/pushMessage.ts
./src/util/pushMessage.ts 11:8-14
[tsl] ERROR in /src/util/pushMessage.ts(11,9)
      TS2304: Cannot find name 'chrome'.
 @ ./src/background/controllers/request-manager.ts 6:38-70
 @ ./src/background/zk-kepeer.ts 14:42-82
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in /src/util/pushMessage.ts
./src/util/pushMessage.ts 11:18-24
[tsl] ERROR in /src/util/pushMessage.ts(11,19)
      TS2304: Cannot find name 'chrome'.
 @ ./src/background/controllers/request-manager.ts 6:38-70
 @ ./src/background/zk-kepeer.ts 14:42-82
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in /src/util/pushMessage.ts
./src/util/pushMessage.ts 12:15-21
[tsl] ERROR in /src/util/pushMessage.ts(12,16)
      TS2304: Cannot find name 'chrome'.
 @ ./src/background/controllers/request-manager.ts 6:38-70
 @ ./src/background/zk-kepeer.ts 14:42-82
 @ ./src/background/backgroundPage.ts 9:36-58

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

webpack 5.75.0 compiled with 58 errors in 7572 ms
0xisk commented 1 year ago

10 errors have been resolved in this commit: https://github.com/privacy-scaling-explorations/crypt-keeper-extension/commit/76e2790b8d54081af0a75c037e0a5ad6b0e2a849

Ref: https://github.com/angular/angular-cli/issues/20819#issuecomment-844172146

ERROR in ./node_modules/circomlibjs/node_modules/wasmbuilder/src/protoboard.js 23:15-32
Module not found: Error: Can't resolve 'assert' in '/node_modules/circomlibjs/node_modules/wasmbuilder/src'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "assert": require.resolve("assert/") }'
        - install 'assert'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "assert": false }
 @ ./node_modules/circomlibjs/node_modules/wasmbuilder/index.js 22:0-60
 @ ./node_modules/circomlibjs/node_modules/ffjavascript/build/main.cjs 10:18-40
 @ ./node_modules/circomlibjs/src/babyjub.js 1:16-47 2:15-45 3:14-43
 @ ./node_modules/circomlibjs/index.js 1:0-42
 @ ./node_modules/@zk-kit/identity/dist/index.node.js 14:18-40
 @ ./src/background/identity-factory.ts 6:19-46
 @ ./src/background/zk-kepeer.ts 18:43-72
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in ./node_modules/circomlibjs/src/poseidon.js 1:15-32
Module not found: Error: Can't resolve 'assert' in '/node_modules/circomlibjs/src'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "assert": require.resolve("assert/") }'
        - install 'assert'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "assert": false }
 @ ./node_modules/circomlibjs/index.js 10:0-44
 @ ./node_modules/@zk-kit/identity/dist/index.node.js 14:18-40
 @ ./src/background/identity-factory.ts 6:19-46
 @ ./src/background/zk-kepeer.ts 18:43-72
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in ./node_modules/circomlibjs/src/poseidon_slow.js 1:15-32
Module not found: Error: Can't resolve 'assert' in '/node_modules/circomlibjs/src'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "assert": require.resolve("assert/") }'
        - install 'assert'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "assert": false }
 @ ./node_modules/circomlibjs/index.js 11:0-54
 @ ./node_modules/@zk-kit/identity/dist/index.node.js 14:18-40
 @ ./src/background/identity-factory.ts 6:19-46
 @ ./src/background/zk-kepeer.ts 18:43-72
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in ./node_modules/ethereumjs-util/dist.browser/account.js 23:31-48
Module not found: Error: Can't resolve 'assert' in '/node_modules/ethereumjs-util/dist.browser'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "assert": require.resolve("assert/") }'
        - install 'assert'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "assert": false }
 @ ./node_modules/ethereumjs-util/dist.browser/index.js 25:13-33
 @ ./node_modules/web3-utils/lib/utils.js 25:21-47
 @ ./node_modules/web3-utils/lib/index.js 24:12-33
 @ ./node_modules/circomlibjs/src/evmasm.js 6:18-39
 @ ./node_modules/circomlibjs/index.js 3:0-40
 @ ./node_modules/@zk-kit/identity/dist/index.node.js 14:18-40
 @ ./src/background/identity-factory.ts 6:19-46
 @ ./src/background/zk-kepeer.ts 18:43-72
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in ./node_modules/ethereumjs-util/dist.browser/address.js 7:31-48
Module not found: Error: Can't resolve 'assert' in '/node_modules/ethereumjs-util/dist.browser'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "assert": require.resolve("assert/") }'
        - install 'assert'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "assert": false }
 @ ./node_modules/ethereumjs-util/dist.browser/index.js 29:13-33
 @ ./node_modules/web3-utils/lib/utils.js 25:21-47
 @ ./node_modules/web3-utils/lib/index.js 24:12-33
 @ ./node_modules/circomlibjs/src/evmasm.js 6:18-39
 @ ./node_modules/circomlibjs/index.js 3:0-40
 @ ./node_modules/@zk-kit/identity/dist/index.node.js 14:18-40
 @ ./src/background/identity-factory.ts 6:19-46
 @ ./src/background/zk-kepeer.ts 18:43-72
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in ./node_modules/ethereumjs-util/dist.browser/object.js 7:31-48
Module not found: Error: Can't resolve 'assert' in '/node_modules/ethereumjs-util/dist.browser'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "assert": require.resolve("assert/") }'
        - install 'assert'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "assert": false }
 @ ./node_modules/ethereumjs-util/dist.browser/index.js 45:13-32
 @ ./node_modules/web3-utils/lib/utils.js 25:21-47
 @ ./node_modules/web3-utils/lib/index.js 24:12-33
 @ ./node_modules/circomlibjs/src/evmasm.js 6:18-39
 @ ./node_modules/circomlibjs/index.js 3:0-40
 @ ./node_modules/@zk-kit/identity/dist/index.node.js 14:18-40
 @ ./src/background/identity-factory.ts 6:19-46
 @ ./src/background/zk-kepeer.ts 18:43-72
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in ./node_modules/follow-redirects/index.js 6:13-30
Module not found: Error: Can't resolve 'assert' in '/node_modules/follow-redirects'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "assert": require.resolve("assert/") }'
        - install 'assert'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "assert": false }
 @ ./node_modules/axios/dist/node/axios.cjs 9:24-51
 @ ./src/background/services/protocols/rln.ts 8:32-48
 @ ./src/background/zk-kepeer.ts 16:30-65
 @ ./src/background/backgroundPage.ts 9:36-58

48 remaining errors:

ERROR in ./src/ui/components/Button/index.tsx 12:0-24
Module not found: Error: Can't resolve 'style-loader' in '/home/iskander/Projects/ef/zkKeeper/zk-keeper'
 @ ./src/ui/pages/Onboarding/index.tsx 31:30-66
 @ ./src/ui/pages/Popup/index.tsx 38:37-72
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/Button/index.tsx 14:37-80
Module not found: Error: Can't resolve 'file-loader' in '/home/iskander/Projects/ef/zkKeeper/zk-keeper'
 @ ./src/ui/pages/Onboarding/index.tsx 31:30-66
 @ ./src/ui/pages/Popup/index.tsx 38:37-72
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/Checkbox/index.tsx 10:0-23
Module not found: Error: Can't resolve 'style-loader' in '/home/iskander/Projects/ef/zkKeeper/zk-keeper'
 @ ./src/ui/components/ConfirmRequestModal/index.tsx 42:35-73
 @ ./src/ui/pages/Popup/index.tsx 40:46-95
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/ConfirmRequestModal/index.tsx 37:0-31
Module not found: Error: Can't resolve 'style-loader' in '/home/iskander/Projects/ef/zkKeeper/zk-keeper'
 @ ./src/ui/pages/Popup/index.tsx 40:46-95
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/Dropdown/index.tsx 12:0-26
Module not found: Error: Can't resolve 'style-loader' in '/home/iskander/Projects/ef/zkKeeper/zk-keeper'
 @ ./src/ui/components/ConfirmRequestModal/index.tsx 39:35-73
 @ ./src/ui/pages/Popup/index.tsx 40:46-95
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/FullModal/index.tsx 10:0-28
Module not found: Error: Can't resolve 'style-loader' in '/home/iskander/Projects/ef/zkKeeper/zk-keeper'
 @ ./src/ui/components/ConfirmRequestModal/index.tsx 31:33-72
 @ ./src/ui/pages/Popup/index.tsx 40:46-95
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/Header/index.tsx 31:35-72
Module not found: Error: Can't resolve 'file-loader' in '/home/iskander/Projects/ef/zkKeeper/zk-keeper'
 @ ./src/ui/pages/Home/index.tsx 36:33-69
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/Header/index.tsx 32:37-76
Module not found: Error: Can't resolve 'file-loader' in '/home/iskander/Projects/ef/zkKeeper/zk-keeper'
 @ ./src/ui/pages/Home/index.tsx 36:33-69
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/Header/index.tsx 37:0-24
Module not found: Error: Can't resolve 'style-loader' in '/home/iskander/Projects/ef/zkKeeper/zk-keeper'
 @ ./src/ui/pages/Home/index.tsx 36:33-69
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/Icon/index.tsx 34:0-22
Module not found: Error: Can't resolve 'style-loader' in '/home/iskander/Projects/ef/zkKeeper/zk-keeper'
 @ ./src/ui/pages/Home/index.tsx 34:31-65
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/Input/index.tsx 7:0-23
Module not found: Error: Can't resolve 'style-loader' in '/home/iskander/Projects/ef/zkKeeper/zk-keeper'
 @ ./src/ui/pages/Onboarding/index.tsx 34:32-67
 @ ./src/ui/pages/Popup/index.tsx 38:37-72
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/Menuable/index.tsx 31:0-26
Module not found: Error: Can't resolve 'style-loader' in '/home/iskander/Projects/ef/zkKeeper/zk-keeper'
 @ ./src/ui/pages/Home/index.tsx 43:35-73
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/Modal/index.tsx 8:0-23
Module not found: Error: Can't resolve 'style-loader' in '/home/iskander/Projects/ef/zkKeeper/zk-keeper'
 @ ./src/ui/components/FullModal/index.tsx 8:32-67
 @ ./src/ui/components/ConfirmRequestModal/index.tsx 31:33-72
 @ ./src/ui/pages/Popup/index.tsx 40:46-95
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/pages/Home/index.tsx 39:0-22
Module not found: Error: Can't resolve 'style-loader' in '/home/iskander/Projects/ef/zkKeeper/zk-keeper'
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/pages/Login/index.tsx 30:0-23
Module not found: Error: Can't resolve 'style-loader' in '/home/iskander/Projects/ef/zkKeeper/zk-keeper'
 @ ./src/ui/pages/Popup/index.tsx 39:32-62
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/pages/Login/index.tsx 33:35-72
Module not found: Error: Can't resolve 'file-loader' in '/home/iskander/Projects/ef/zkKeeper/zk-keeper'
 @ ./src/ui/pages/Popup/index.tsx 39:32-62
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/pages/Onboarding/index.tsx 30:0-28
Module not found: Error: Can't resolve 'style-loader' in '/home/iskander/Projects/ef/zkKeeper/zk-keeper'
 @ ./src/ui/pages/Popup/index.tsx 38:37-72
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/pages/Onboarding/index.tsx 33:35-72
Module not found: Error: Can't resolve 'file-loader' in '/home/iskander/Projects/ef/zkKeeper/zk-keeper'
 @ ./src/ui/pages/Popup/index.tsx 38:37-72
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/pages/Popup/index.tsx 32:0-23
Module not found: Error: Can't resolve 'style-loader' in '/home/iskander/Projects/ef/zkKeeper/zk-keeper'
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./node_modules/axios/dist/node/axios.cjs 10:13-28
Module not found: Error: Can't resolve 'zlib' in 'node_modules/axios/dist/node'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "zlib": require.resolve("browserify-zlib") }'
        - install 'browserify-zlib'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "zlib": false }
 @ ./src/background/services/protocols/semaphore.ts 8:32-48
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in ./node_modules/fastfile/build/main.cjs 8:16-36
Module not found: Error: Can't resolve 'constants' in 'node_modules/fastfile/build'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "constants": require.resolve("constants-browserify") }'
        - install 'constants-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "constants": false }
 @ ./node_modules/snarkjs/build/main.cjs 10:15-34
 @ ./node_modules/@zk-kit/protocols/dist/index.node.js 17:14-32
 @ ./src/background/services/protocols/semaphore.ts 6:20-48
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in ./node_modules/snarkjs/build/main.cjs 8:15-34
Module not found: Error: Can't resolve 'readline' in 'node_modules/snarkjs/build'
 @ ./node_modules/@zk-kit/protocols/dist/index.node.js 17:14-32
 @ ./src/background/services/protocols/semaphore.ts 6:20-48
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/identity-factory.test.ts
4:0-8
[tsl] ERROR in src/background/identity-factory.test.ts(4,1)
      TS2582: Cannot find name 'describe'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.

ERROR in src/background/identity-factory.test.ts
5:4-6
[tsl] ERROR in src/background/identity-factory.test.ts(5,5)
      TS2582: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.

ERROR in src/background/identity-factory.test.ts
8:14-20
[tsl] ERROR in src/background/identity-factory.test.ts(8,15)
      TS2304: Cannot find name 'expect'.

ERROR in src/background/identity-factory.test.ts
11:4-6
[tsl] ERROR in src/background/identity-factory.test.ts(11,5)
      TS2582: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.

ERROR in src/background/identity-factory.test.ts
15:8-14
[tsl] ERROR in src/background/identity-factory.test.ts(15,9)
      TS2304: Cannot find name 'expect'.

ERROR in src/background/identity-factory.test.ts
16:8-14
[tsl] ERROR in src/background/identity-factory.test.ts(16,9)
      TS2304: Cannot find name 'expect'.

ERROR in src/background/identity-factory.test.ts
17:8-14
[tsl] ERROR in src/background/identity-factory.test.ts(17,9)
      TS2304: Cannot find name 'expect'.

ERROR in src/background/identity-factory.test.ts
20:4-6
[tsl] ERROR in src/background/identity-factory.test.ts(20,5)
      TS2582: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.

ERROR in src/background/identity-factory.test.ts
23:14-20
[tsl] ERROR in src/background/identity-factory.test.ts(23,15)
      TS2304: Cannot find name 'expect'.

ERROR in src/background/identity-factory.ts
./src/background/identity-factory.ts 26:10-18
[tsl] ERROR in src/background/identity-factory.ts(26,11)
      TS2740: Type 'Identity' is missing the following properties from type 'ZkIdentity': _identityTrapdoor, _identityNullifier, _secret, getSecret, and 3 more.
 @ ./src/background/zk-kepeer.ts 18:43-72
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/services/protocols/rln.ts
./src/background/services/protocols/rln.ts 42:20-38
[tsl] ERROR in src/background/services/protocols/rln.ts(42,21)
      TS2554: Expected 4 arguments, but got 5.
 @ ./src/background/zk-kepeer.ts 16:30-65
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/services/protocols/semaphore.ts
./src/background/services/protocols/semaphore.ts 7:4-17
[tsl] ERROR in src/background/services/protocols/semaphore.ts(7,5)
      TS2305: Module '"@zk-kit/protocols"' has no exported member 'genSignalHash'.
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/services/protocols/semaphore.ts
./src/background/services/protocols/semaphore.ts 51:20-38
[tsl] ERROR in src/background/services/protocols/semaphore.ts(51,21)
      TS2554: Expected 4 arguments, but got 5.
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/services/protocols/semaphore.ts
./src/background/services/protocols/semaphore.ts 65:88-97
[tsl] ERROR in src/background/services/protocols/semaphore.ts(65,89)
      TS2345: Argument of type 'SemaphoreFullProof' is not assignable to parameter of type 'Proof'.
  Type 'SemaphoreFullProof' is missing the following properties from type 'Proof': pi_a, pi_b, pi_c, protocol, curve
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/ui/components/CreateIdentityModal/index.tsx
./src/ui/components/CreateIdentityModal/index.tsx 31:27-60
[tsl] ERROR in src/ui/components/CreateIdentityModal/index.tsx(31,28)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<any>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Home/index.tsx 41:46-95
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 30:13-30
[tsl] ERROR in src/ui/pages/Home/index.tsx(30,14)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 31:13-30
[tsl] ERROR in src/ui/pages/Home/index.tsx(31,14)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 184:13-50
[tsl] ERROR in src/ui/pages/Home/index.tsx(184,14)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<any>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 188:21-62
[tsl] ERROR in src/ui/pages/Home/index.tsx(188,22)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<any>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 193:19-53
[tsl] ERROR in src/ui/pages/Home/index.tsx(193,20)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<any>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 212:13-30
[tsl] ERROR in src/ui/pages/Home/index.tsx(212,14)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 5:9-17
[tsl] ERROR in src/ui/pages/Popup/index.tsx(5,10)
      TS2724: '"react-router"' has no exported member named 'Redirect'. Did you mean 'redirect'?
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 5:26-32
[tsl] ERROR in src/ui/pages/Popup/index.tsx(5,27)
      TS2305: Module '"react-router"' has no exported member 'Switch'.
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 23:31-44
[tsl] ERROR in src/ui/pages/Popup/index.tsx(23,32)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 24:31-58
[tsl] ERROR in src/ui/pages/Popup/index.tsx(24,32)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 34:17-44
[tsl] ERROR in src/ui/pages/Popup/index.tsx(34,18)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/popup.tsx 32:32-62

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

webpack 5.75.0 compiled with 48 errors in 11722 ms
0xisk commented 1 year ago

Resolving those two errors, by this command: npm install --save-dev style-loader file-loader

Module not found: Error: Can't resolve 'style-loader'
Module not found: Error: Can't resolve 'file-loader'

48 remaining errors:

ERROR in ./src/ui/components/Button/index.tsx 12:0-24
Module not found: Error: Can't resolve 'css-loader' in ''
 @ ./src/ui/pages/Onboarding/index.tsx 31:30-66
 @ ./src/ui/pages/Popup/index.tsx 38:37-72
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/Button/index.tsx 14:37-80
Module not found: Error: Can't resolve 'image-webpack-loader' in ''
 @ ./src/ui/pages/Onboarding/index.tsx 31:30-66
 @ ./src/ui/pages/Popup/index.tsx 38:37-72
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/Checkbox/index.tsx 10:0-23
Module not found: Error: Can't resolve 'css-loader' in ''
 @ ./src/ui/components/ConfirmRequestModal/index.tsx 42:35-73
 @ ./src/ui/pages/Popup/index.tsx 40:46-95
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/ConfirmRequestModal/index.tsx 37:0-31
Module not found: Error: Can't resolve 'css-loader' in ''
 @ ./src/ui/pages/Popup/index.tsx 40:46-95
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/Dropdown/index.tsx 12:0-26
Module not found: Error: Can't resolve 'css-loader' in ''
 @ ./src/ui/components/ConfirmRequestModal/index.tsx 39:35-73
 @ ./src/ui/pages/Popup/index.tsx 40:46-95
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/FullModal/index.tsx 10:0-28
Module not found: Error: Can't resolve 'css-loader' in ''
 @ ./src/ui/components/ConfirmRequestModal/index.tsx 31:33-72
 @ ./src/ui/pages/Popup/index.tsx 40:46-95
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/Header/index.tsx 31:35-72
Module not found: Error: Can't resolve 'image-webpack-loader' in ''
 @ ./src/ui/pages/Home/index.tsx 36:33-69
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/Header/index.tsx 32:37-76
Module not found: Error: Can't resolve 'image-webpack-loader' in ''
 @ ./src/ui/pages/Home/index.tsx 36:33-69
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/Header/index.tsx 37:0-24
Module not found: Error: Can't resolve 'css-loader' in ''
 @ ./src/ui/pages/Home/index.tsx 36:33-69
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/Icon/index.tsx 34:0-22
Module not found: Error: Can't resolve 'css-loader' in ''
 @ ./src/ui/pages/Home/index.tsx 34:31-65
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/Input/index.tsx 7:0-23
Module not found: Error: Can't resolve 'css-loader' in ''
 @ ./src/ui/pages/Onboarding/index.tsx 34:32-67
 @ ./src/ui/pages/Popup/index.tsx 38:37-72
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/Menuable/index.tsx 31:0-26
Module not found: Error: Can't resolve 'css-loader' in ''
 @ ./src/ui/pages/Home/index.tsx 43:35-73
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/Modal/index.tsx 8:0-23
Module not found: Error: Can't resolve 'css-loader' in ''
 @ ./src/ui/components/FullModal/index.tsx 8:32-67
 @ ./src/ui/components/ConfirmRequestModal/index.tsx 31:33-72
 @ ./src/ui/pages/Popup/index.tsx 40:46-95
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/pages/Home/index.tsx 39:0-22
Module not found: Error: Can't resolve 'css-loader' in ''
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/pages/Login/index.tsx 30:0-23
Module not found: Error: Can't resolve 'css-loader' in ''
 @ ./src/ui/pages/Popup/index.tsx 39:32-62
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/pages/Login/index.tsx 33:35-72
Module not found: Error: Can't resolve 'image-webpack-loader' in ''
 @ ./src/ui/pages/Popup/index.tsx 39:32-62
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/pages/Onboarding/index.tsx 30:0-28
Module not found: Error: Can't resolve 'css-loader' in ''
 @ ./src/ui/pages/Popup/index.tsx 38:37-72
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/pages/Onboarding/index.tsx 33:35-72
Module not found: Error: Can't resolve 'image-webpack-loader' in ''
 @ ./src/ui/pages/Popup/index.tsx 38:37-72
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/pages/Popup/index.tsx 32:0-23
Module not found: Error: Can't resolve 'css-loader' in ''
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./node_modules/axios/dist/node/axios.cjs 10:13-28
Module not found: Error: Can't resolve 'zlib' in 'node_modules/axios/dist/node'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "zlib": require.resolve("browserify-zlib") }'
        - install 'browserify-zlib'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "zlib": false }
 @ ./src/background/services/protocols/semaphore.ts 8:32-48
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in ./node_modules/fastfile/build/main.cjs 8:16-36
Module not found: Error: Can't resolve 'constants' in 'node_modules/fastfile/build'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "constants": require.resolve("constants-browserify") }'
        - install 'constants-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "constants": false }
 @ ./node_modules/snarkjs/build/main.cjs 10:15-34
 @ ./node_modules/@zk-kit/protocols/dist/index.node.js 17:14-32
 @ ./src/background/services/protocols/semaphore.ts 6:20-48
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in ./node_modules/snarkjs/build/main.cjs 8:15-34
Module not found: Error: Can't resolve 'readline' in 'node_modules/snarkjs/build'
 @ ./node_modules/@zk-kit/protocols/dist/index.node.js 17:14-32
 @ ./src/background/services/protocols/semaphore.ts 6:20-48
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/identity-factory.test.ts
4:0-8
[tsl] ERROR in src/background/identity-factory.test.ts(4,1)
      TS2582: Cannot find name 'describe'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.

ERROR in src/background/identity-factory.test.ts
5:4-6
[tsl] ERROR in src/background/identity-factory.test.ts(5,5)
      TS2582: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.

ERROR in src/background/identity-factory.test.ts
8:14-20
[tsl] ERROR in src/background/identity-factory.test.ts(8,15)
      TS2304: Cannot find name 'expect'.

ERROR in src/background/identity-factory.test.ts
11:4-6
[tsl] ERROR in src/background/identity-factory.test.ts(11,5)
      TS2582: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.

ERROR in src/background/identity-factory.test.ts
15:8-14
[tsl] ERROR in src/background/identity-factory.test.ts(15,9)
      TS2304: Cannot find name 'expect'.

ERROR in src/background/identity-factory.test.ts
16:8-14
[tsl] ERROR in src/background/identity-factory.test.ts(16,9)
      TS2304: Cannot find name 'expect'.

ERROR in src/background/identity-factory.test.ts
17:8-14
[tsl] ERROR in src/background/identity-factory.test.ts(17,9)
      TS2304: Cannot find name 'expect'.

ERROR in src/background/identity-factory.test.ts
20:4-6
[tsl] ERROR in src/background/identity-factory.test.ts(20,5)
      TS2582: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.

ERROR in src/background/identity-factory.test.ts
23:14-20
[tsl] ERROR in src/background/identity-factory.test.ts(23,15)
      TS2304: Cannot find name 'expect'.

ERROR in src/background/identity-factory.ts
./src/background/identity-factory.ts 26:10-18
[tsl] ERROR in src/background/identity-factory.ts(26,11)
      TS2740: Type 'Identity' is missing the following properties from type 'ZkIdentity': _identityTrapdoor, _identityNullifier, _secret, getSecret, and 3 more.
 @ ./src/background/zk-kepeer.ts 18:43-72
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/services/protocols/rln.ts
./src/background/services/protocols/rln.ts 42:20-38
[tsl] ERROR in src/background/services/protocols/rln.ts(42,21)
      TS2554: Expected 4 arguments, but got 5.
 @ ./src/background/zk-kepeer.ts 16:30-65
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/services/protocols/semaphore.ts
./src/background/services/protocols/semaphore.ts 7:4-17
[tsl] ERROR in src/background/services/protocols/semaphore.ts(7,5)
      TS2305: Module '"@zk-kit/protocols"' has no exported member 'genSignalHash'.
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/services/protocols/semaphore.ts
./src/background/services/protocols/semaphore.ts 51:20-38
[tsl] ERROR in src/background/services/protocols/semaphore.ts(51,21)
      TS2554: Expected 4 arguments, but got 5.
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/services/protocols/semaphore.ts
./src/background/services/protocols/semaphore.ts 65:88-97
[tsl] ERROR in src/background/services/protocols/semaphore.ts(65,89)
      TS2345: Argument of type 'SemaphoreFullProof' is not assignable to parameter of type 'Proof'.
  Type 'SemaphoreFullProof' is missing the following properties from type 'Proof': pi_a, pi_b, pi_c, protocol, curve
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/ui/components/CreateIdentityModal/index.tsx
./src/ui/components/CreateIdentityModal/index.tsx 31:27-60
[tsl] ERROR in src/ui/components/CreateIdentityModal/index.tsx(31,28)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<any>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Home/index.tsx 41:46-95
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 30:13-30
[tsl] ERROR in src/ui/pages/Home/index.tsx(30,14)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 31:13-30
[tsl] ERROR in src/ui/pages/Home/index.tsx(31,14)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 184:13-50
[tsl] ERROR in src/ui/pages/Home/index.tsx(184,14)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<any>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 188:21-62
[tsl] ERROR in src/ui/pages/Home/index.tsx(188,22)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<any>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 193:19-53
[tsl] ERROR in src/ui/pages/Home/index.tsx(193,20)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<any>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 212:13-30
[tsl] ERROR in src/ui/pages/Home/index.tsx(212,14)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 5:9-17
[tsl] ERROR in src/ui/pages/Popup/index.tsx(5,10)
      TS2724: '"react-router"' has no exported member named 'Redirect'. Did you mean 'redirect'?
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 5:26-32
[tsl] ERROR in src/ui/pages/Popup/index.tsx(5,27)
      TS2305: Module '"react-router"' has no exported member 'Switch'.
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 23:31-44
[tsl] ERROR in src/ui/pages/Popup/index.tsx(23,32)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 24:31-58
[tsl] ERROR in src/ui/pages/Popup/index.tsx(24,32)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 34:17-44
[tsl] ERROR in src/ui/pages/Popup/index.tsx(34,18)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/popup.tsx 32:32-62

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

webpack 5.75.0 compiled with 48 errors in 11786 ms
0xisk commented 1 year ago

Resolving those two errors, by installing this command: npm install --save-dev css-loader image-webpack-loader

Module not found: Error: Can't resolve 'image-webpack-loader'
Module not found: Error: Can't resolve 'css-loader'

43 remaining errors:


ERROR in ./src/ui/components/Button/index.tsx 12:0-24
Module not found: Error: Can't resolve 'sass-loader' in '/home/iskander/Projects/ef/zkKeeper/zk-keeper'
 @ ./src/ui/pages/Onboarding/index.tsx 31:30-66
 @ ./src/ui/pages/Popup/index.tsx 38:37-72
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/Checkbox/index.tsx 10:0-23
Module not found: Error: Can't resolve 'sass-loader' in '/home/iskander/Projects/ef/zkKeeper/zk-keeper'
 @ ./src/ui/components/ConfirmRequestModal/index.tsx 42:35-73
 @ ./src/ui/pages/Popup/index.tsx 40:46-95
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/ConfirmRequestModal/index.tsx 37:0-31
Module not found: Error: Can't resolve 'sass-loader' in '/home/iskander/Projects/ef/zkKeeper/zk-keeper'
 @ ./src/ui/pages/Popup/index.tsx 40:46-95
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/Dropdown/index.tsx 12:0-26
Module not found: Error: Can't resolve 'sass-loader' in '/home/iskander/Projects/ef/zkKeeper/zk-keeper'
 @ ./src/ui/components/ConfirmRequestModal/index.tsx 39:35-73
 @ ./src/ui/pages/Popup/index.tsx 40:46-95
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/FullModal/index.tsx 10:0-28
Module not found: Error: Can't resolve 'sass-loader' in '/home/iskander/Projects/ef/zkKeeper/zk-keeper'
 @ ./src/ui/components/ConfirmRequestModal/index.tsx 31:33-72
 @ ./src/ui/pages/Popup/index.tsx 40:46-95
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/Header/index.tsx 37:0-24
Module not found: Error: Can't resolve 'sass-loader' in '/home/iskander/Projects/ef/zkKeeper/zk-keeper'
 @ ./src/ui/pages/Home/index.tsx 36:33-69
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/Icon/index.tsx 34:0-22
Module not found: Error: Can't resolve 'sass-loader' in '/home/iskander/Projects/ef/zkKeeper/zk-keeper'
 @ ./src/ui/pages/Home/index.tsx 34:31-65
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/Input/index.tsx 7:0-23
Module not found: Error: Can't resolve 'sass-loader' in '/home/iskander/Projects/ef/zkKeeper/zk-keeper'
 @ ./src/ui/pages/Onboarding/index.tsx 34:32-67
 @ ./src/ui/pages/Popup/index.tsx 38:37-72
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/Menuable/index.tsx 31:0-26
Module not found: Error: Can't resolve 'sass-loader' in '/home/iskander/Projects/ef/zkKeeper/zk-keeper'
 @ ./src/ui/pages/Home/index.tsx 43:35-73
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/Modal/index.tsx 8:0-23
Module not found: Error: Can't resolve 'sass-loader' in '/home/iskander/Projects/ef/zkKeeper/zk-keeper'
 @ ./src/ui/components/FullModal/index.tsx 8:32-67
 @ ./src/ui/components/ConfirmRequestModal/index.tsx 31:33-72
 @ ./src/ui/pages/Popup/index.tsx 40:46-95
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/pages/Home/index.tsx 39:0-22
Module not found: Error: Can't resolve 'sass-loader' in '/home/iskander/Projects/ef/zkKeeper/zk-keeper'
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/pages/Login/index.tsx 30:0-23
Module not found: Error: Can't resolve 'sass-loader' in '/home/iskander/Projects/ef/zkKeeper/zk-keeper'
 @ ./src/ui/pages/Popup/index.tsx 39:32-62
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/pages/Onboarding/index.tsx 30:0-28
Module not found: Error: Can't resolve 'sass-loader' in '/home/iskander/Projects/ef/zkKeeper/zk-keeper'
 @ ./src/ui/pages/Popup/index.tsx 38:37-72
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/pages/Popup/index.tsx 32:0-23
Module not found: Error: Can't resolve 'sass-loader' in '/home/iskander/Projects/ef/zkKeeper/zk-keeper'
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./node_modules/axios/dist/node/axios.cjs 10:13-28
Module not found: Error: Can't resolve 'zlib' in 'node_modules/axios/dist/node'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "zlib": require.resolve("browserify-zlib") }'
        - install 'browserify-zlib'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "zlib": false }
 @ ./src/background/services/protocols/semaphore.ts 8:32-48
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in ./node_modules/fastfile/build/main.cjs 8:16-36
Module not found: Error: Can't resolve 'constants' in 'node_modules/fastfile/build'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "constants": require.resolve("constants-browserify") }'
        - install 'constants-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "constants": false }
 @ ./node_modules/snarkjs/build/main.cjs 10:15-34
 @ ./node_modules/@zk-kit/protocols/dist/index.node.js 17:14-32
 @ ./src/background/services/protocols/semaphore.ts 6:20-48
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in ./node_modules/snarkjs/build/main.cjs 8:15-34
Module not found: Error: Can't resolve 'readline' in 'node_modules/snarkjs/build'
 @ ./node_modules/@zk-kit/protocols/dist/index.node.js 17:14-32
 @ ./src/background/services/protocols/semaphore.ts 6:20-48
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/identity-factory.test.ts
4:0-8
[tsl] ERROR in src/background/identity-factory.test.ts(4,1)
      TS2582: Cannot find name 'describe'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.

ERROR in src/background/identity-factory.test.ts
5:4-6
[tsl] ERROR in src/background/identity-factory.test.ts(5,5)
      TS2582: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.

ERROR in src/background/identity-factory.test.ts
8:14-20
[tsl] ERROR in src/background/identity-factory.test.ts(8,15)
      TS2304: Cannot find name 'expect'.

ERROR in src/background/identity-factory.test.ts
11:4-6
[tsl] ERROR in src/background/identity-factory.test.ts(11,5)
      TS2582: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.

ERROR in src/background/identity-factory.test.ts
15:8-14
[tsl] ERROR in src/background/identity-factory.test.ts(15,9)
      TS2304: Cannot find name 'expect'.

ERROR in src/background/identity-factory.test.ts
16:8-14
[tsl] ERROR in src/background/identity-factory.test.ts(16,9)
      TS2304: Cannot find name 'expect'.

ERROR in src/background/identity-factory.test.ts
17:8-14
[tsl] ERROR in src/background/identity-factory.test.ts(17,9)
      TS2304: Cannot find name 'expect'.

ERROR in src/background/identity-factory.test.ts
20:4-6
[tsl] ERROR in src/background/identity-factory.test.ts(20,5)
      TS2582: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.

ERROR in src/background/identity-factory.test.ts
23:14-20
[tsl] ERROR in src/background/identity-factory.test.ts(23,15)
      TS2304: Cannot find name 'expect'.

ERROR in src/background/identity-factory.ts
./src/background/identity-factory.ts 26:10-18
[tsl] ERROR in src/background/identity-factory.ts(26,11)
      TS2740: Type 'Identity' is missing the following properties from type 'ZkIdentity': _identityTrapdoor, _identityNullifier, _secret, getSecret, and 3 more.
 @ ./src/background/zk-kepeer.ts 18:43-72
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/services/protocols/rln.ts
./src/background/services/protocols/rln.ts 42:20-38
[tsl] ERROR in src/background/services/protocols/rln.ts(42,21)
      TS2554: Expected 4 arguments, but got 5.
 @ ./src/background/zk-kepeer.ts 16:30-65
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/services/protocols/semaphore.ts
./src/background/services/protocols/semaphore.ts 7:4-17
[tsl] ERROR in src/background/services/protocols/semaphore.ts(7,5)
      TS2305: Module '"@zk-kit/protocols"' has no exported member 'genSignalHash'.
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/services/protocols/semaphore.ts
./src/background/services/protocols/semaphore.ts 51:20-38
[tsl] ERROR in src/background/services/protocols/semaphore.ts(51,21)
      TS2554: Expected 4 arguments, but got 5.
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/services/protocols/semaphore.ts
./src/background/services/protocols/semaphore.ts 65:88-97
[tsl] ERROR in src/background/services/protocols/semaphore.ts(65,89)
      TS2345: Argument of type 'SemaphoreFullProof' is not assignable to parameter of type 'Proof'.
  Type 'SemaphoreFullProof' is missing the following properties from type 'Proof': pi_a, pi_b, pi_c, protocol, curve
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/ui/components/CreateIdentityModal/index.tsx
./src/ui/components/CreateIdentityModal/index.tsx 31:27-60
[tsl] ERROR in src/ui/components/CreateIdentityModal/index.tsx(31,28)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<any>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Home/index.tsx 41:46-95
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 30:13-30
[tsl] ERROR in src/ui/pages/Home/index.tsx(30,14)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 31:13-30
[tsl] ERROR in src/ui/pages/Home/index.tsx(31,14)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 184:13-50
[tsl] ERROR in src/ui/pages/Home/index.tsx(184,14)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<any>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 188:21-62
[tsl] ERROR in src/ui/pages/Home/index.tsx(188,22)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<any>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 193:19-53
[tsl] ERROR in src/ui/pages/Home/index.tsx(193,20)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<any>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 212:13-30
[tsl] ERROR in src/ui/pages/Home/index.tsx(212,14)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 5:9-17
[tsl] ERROR in src/ui/pages/Popup/index.tsx(5,10)
      TS2724: '"react-router"' has no exported member named 'Redirect'. Did you mean 'redirect'?
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 5:26-32
[tsl] ERROR in src/ui/pages/Popup/index.tsx(5,27)
      TS2305: Module '"react-router"' has no exported member 'Switch'.
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 23:31-44
[tsl] ERROR in src/ui/pages/Popup/index.tsx(23,32)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 24:31-58
[tsl] ERROR in src/ui/pages/Popup/index.tsx(24,32)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 34:17-44
[tsl] ERROR in src/ui/pages/Popup/index.tsx(34,18)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/popup.tsx 32:32-62

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

webpack 5.75.0 compiled with 43 errors in 12513 ms
0xisk commented 1 year ago

Resolving this error by installing this command: npm install --save-dev sass-loader

Module not found: Error: Can't resolve 'sass-loader'

43 remaining errors

ERROR in ./src/ui/components/Button/button.scss (./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/components/Button/button.scss)
Module Error (from ./node_modules/sass-loader/dist/cjs.js):
Cannot find module 'sass'
Require stack:
- node_modules/sass-loader/dist/utils.js
- node_modules/sass-loader/dist/index.js
- node_modules/sass-loader/dist/cjs.js
- node_modules/loader-runner/lib/loadLoader.js
- node_modules/loader-runner/lib/LoaderRunner.js
- node_modules/webpack/lib/NormalModuleFactory.js
- node_modules/webpack/lib/Compiler.js
- node_modules/webpack/lib/webpack.js
- node_modules/webpack/lib/index.js
- node_modules/webpack-cli/lib/webpack-cli.js
- node_modules/webpack-cli/lib/bootstrap.js
- node_modules/webpack-cli/bin/cli.js
- node_modules/webpack/bin/webpack.js
 @ ./src/ui/components/Button/button.scss 8:6-159 22:17-24 26:0-129 26:0-129 27:22-29 27:33-47 27:50-64
 @ ./src/ui/components/Button/index.tsx 12:0-24
 @ ./src/ui/pages/Onboarding/index.tsx 31:30-66
 @ ./src/ui/pages/Popup/index.tsx 38:37-72
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/Button/button.scss (./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/components/Button/button.scss)
Module build failed (from ./node_modules/css-loader/dist/cjs.js):
Error: PostCSS received undefined instead of CSS string
    at new Input (node_modules/postcss/lib/input.js:24:13)
    at parse (node_modules/postcss/lib/parse.js:8:15)
    at new LazyResult (node_modules/postcss/lib/lazy-result.js:133:16)
    at Processor.process (node_modules/postcss/lib/processor.js:28:14)
    at Object.loader (node_modules/css-loader/dist/index.js:109:51)
 @ ./src/ui/components/Button/button.scss 8:6-159 22:17-24 26:0-129 26:0-129 27:22-29 27:33-47 27:50-64
 @ ./src/ui/components/Button/index.tsx 12:0-24
 @ ./src/ui/pages/Onboarding/index.tsx 31:30-66
 @ ./src/ui/pages/Popup/index.tsx 38:37-72
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/Checkbox/index.scss (./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/components/Checkbox/index.scss)
Module Error (from ./node_modules/sass-loader/dist/cjs.js):
Cannot find module 'sass'
Require stack:
- node_modules/sass-loader/dist/utils.js
- node_modules/sass-loader/dist/index.js
- node_modules/sass-loader/dist/cjs.js
- node_modules/loader-runner/lib/loadLoader.js
- node_modules/loader-runner/lib/LoaderRunner.js
- node_modules/webpack/lib/NormalModuleFactory.js
- node_modules/webpack/lib/Compiler.js
- node_modules/webpack/lib/webpack.js
- node_modules/webpack/lib/index.js
- node_modules/webpack-cli/lib/webpack-cli.js
- node_modules/webpack-cli/lib/bootstrap.js
- node_modules/webpack-cli/bin/cli.js
- node_modules/webpack/bin/webpack.js
 @ ./src/ui/components/Checkbox/index.scss 8:6-158 22:17-24 26:0-128 26:0-128 27:22-29 27:33-47 27:50-64
 @ ./src/ui/components/Checkbox/index.tsx 10:0-23
 @ ./src/ui/components/ConfirmRequestModal/index.tsx 42:35-73
 @ ./src/ui/pages/Popup/index.tsx 40:46-95
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/Checkbox/index.scss (./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/components/Checkbox/index.scss)
Module build failed (from ./node_modules/css-loader/dist/cjs.js):
Error: PostCSS received undefined instead of CSS string
    at new Input (node_modules/postcss/lib/input.js:24:13)
    at parse (node_modules/postcss/lib/parse.js:8:15)
    at new LazyResult (node_modules/postcss/lib/lazy-result.js:133:16)
    at Processor.process (node_modules/postcss/lib/processor.js:28:14)
    at Object.loader (node_modules/css-loader/dist/index.js:109:51)
 @ ./src/ui/components/Checkbox/index.scss 8:6-158 22:17-24 26:0-128 26:0-128 27:22-29 27:33-47 27:50-64
 @ ./src/ui/components/Checkbox/index.tsx 10:0-23
 @ ./src/ui/components/ConfirmRequestModal/index.tsx 42:35-73
 @ ./src/ui/pages/Popup/index.tsx 40:46-95
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/ConfirmRequestModal/confirm-modal.scss (./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/components/ConfirmRequestModal/confirm-modal.scss)
Module Error (from ./node_modules/sass-loader/dist/cjs.js):
Cannot find module 'sass'
Require stack:
- node_modules/sass-loader/dist/utils.js
- node_modules/sass-loader/dist/index.js
- node_modules/sass-loader/dist/cjs.js
- node_modules/loader-runner/lib/loadLoader.js
- node_modules/loader-runner/lib/LoaderRunner.js
- node_modules/webpack/lib/NormalModuleFactory.js
- node_modules/webpack/lib/Compiler.js
- node_modules/webpack/lib/webpack.js
- node_modules/webpack/lib/index.js
- node_modules/webpack-cli/lib/webpack-cli.js
- node_modules/webpack-cli/lib/bootstrap.js
- node_modules/webpack-cli/bin/cli.js
- node_modules/webpack/bin/webpack.js
 @ ./src/ui/components/ConfirmRequestModal/confirm-modal.scss 8:6-166 22:17-24 26:0-136 26:0-136 27:22-29 27:33-47 27:50-64
 @ ./src/ui/components/ConfirmRequestModal/index.tsx 37:0-31
 @ ./src/ui/pages/Popup/index.tsx 40:46-95
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/ConfirmRequestModal/confirm-modal.scss (./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/components/ConfirmRequestModal/confirm-modal.scss)
Module build failed (from ./node_modules/css-loader/dist/cjs.js):
Error: PostCSS received undefined instead of CSS string
    at new Input (node_modules/postcss/lib/input.js:24:13)
    at parse (node_modules/postcss/lib/parse.js:8:15)
    at new LazyResult (node_modules/postcss/lib/lazy-result.js:133:16)
    at Processor.process (node_modules/postcss/lib/processor.js:28:14)
    at Object.loader (node_modules/css-loader/dist/index.js:109:51)
 @ ./src/ui/components/ConfirmRequestModal/confirm-modal.scss 8:6-166 22:17-24 26:0-136 26:0-136 27:22-29 27:33-47 27:50-64
 @ ./src/ui/components/ConfirmRequestModal/index.tsx 37:0-31
 @ ./src/ui/pages/Popup/index.tsx 40:46-95
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/Dropdown/dropdown.scss (./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/components/Dropdown/dropdown.scss)
Module Error (from ./node_modules/sass-loader/dist/cjs.js):
Cannot find module 'sass'
Require stack:
- node_modules/sass-loader/dist/utils.js
- node_modules/sass-loader/dist/index.js
- node_modules/sass-loader/dist/cjs.js
- node_modules/loader-runner/lib/loadLoader.js
- node_modules/loader-runner/lib/LoaderRunner.js
- node_modules/webpack/lib/NormalModuleFactory.js
- node_modules/webpack/lib/Compiler.js
- node_modules/webpack/lib/webpack.js
- node_modules/webpack/lib/index.js
- node_modules/webpack-cli/lib/webpack-cli.js
- node_modules/webpack-cli/lib/bootstrap.js
- node_modules/webpack-cli/bin/cli.js
- node_modules/webpack/bin/webpack.js
 @ ./src/ui/components/Dropdown/dropdown.scss 8:6-161 22:17-24 26:0-131 26:0-131 27:22-29 27:33-47 27:50-64
 @ ./src/ui/components/Dropdown/index.tsx 12:0-26
 @ ./src/ui/components/ConfirmRequestModal/index.tsx 39:35-73
 @ ./src/ui/pages/Popup/index.tsx 40:46-95
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/Dropdown/dropdown.scss (./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/components/Dropdown/dropdown.scss)
Module build failed (from ./node_modules/css-loader/dist/cjs.js):
Error: PostCSS received undefined instead of CSS string
    at new Input (node_modules/postcss/lib/input.js:24:13)
    at parse (node_modules/postcss/lib/parse.js:8:15)
    at new LazyResult (node_modules/postcss/lib/lazy-result.js:133:16)
    at Processor.process (node_modules/postcss/lib/processor.js:28:14)
    at Object.loader (node_modules/css-loader/dist/index.js:109:51)
 @ ./src/ui/components/Dropdown/dropdown.scss 8:6-161 22:17-24 26:0-131 26:0-131 27:22-29 27:33-47 27:50-64
 @ ./src/ui/components/Dropdown/index.tsx 12:0-26
 @ ./src/ui/components/ConfirmRequestModal/index.tsx 39:35-73
 @ ./src/ui/pages/Popup/index.tsx 40:46-95
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/FullModal/full-modal.scss (./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/components/FullModal/full-modal.scss)
Module Error (from ./node_modules/sass-loader/dist/cjs.js):
Cannot find module 'sass'
Require stack:
- node_modules/sass-loader/dist/utils.js
- node_modules/sass-loader/dist/index.js
- node_modules/sass-loader/dist/cjs.js
- node_modules/loader-runner/lib/loadLoader.js
- node_modules/loader-runner/lib/LoaderRunner.js
- node_modules/webpack/lib/NormalModuleFactory.js
- node_modules/webpack/lib/Compiler.js
- node_modules/webpack/lib/webpack.js
- node_modules/webpack/lib/index.js
- node_modules/webpack-cli/lib/webpack-cli.js
- node_modules/webpack-cli/lib/bootstrap.js
- node_modules/webpack-cli/bin/cli.js
- node_modules/webpack/bin/webpack.js
 @ ./src/ui/components/FullModal/full-modal.scss 8:6-163 22:17-24 26:0-133 26:0-133 27:22-29 27:33-47 27:50-64
 @ ./src/ui/components/FullModal/index.tsx 10:0-28
 @ ./src/ui/components/ConfirmRequestModal/index.tsx 31:33-72
 @ ./src/ui/pages/Popup/index.tsx 40:46-95
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/FullModal/full-modal.scss (./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/components/FullModal/full-modal.scss)
Module build failed (from ./node_modules/css-loader/dist/cjs.js):
Error: PostCSS received undefined instead of CSS string
    at new Input (node_modules/postcss/lib/input.js:24:13)
    at parse (node_modules/postcss/lib/parse.js:8:15)
    at new LazyResult (node_modules/postcss/lib/lazy-result.js:133:16)
    at Processor.process (node_modules/postcss/lib/processor.js:28:14)
    at Object.loader (node_modules/css-loader/dist/index.js:109:51)
 @ ./src/ui/components/FullModal/full-modal.scss 8:6-163 22:17-24 26:0-133 26:0-133 27:22-29 27:33-47 27:50-64
 @ ./src/ui/components/FullModal/index.tsx 10:0-28
 @ ./src/ui/components/ConfirmRequestModal/index.tsx 31:33-72
 @ ./src/ui/pages/Popup/index.tsx 40:46-95
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/Header/header.scss (./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/components/Header/header.scss)
Module Error (from ./node_modules/sass-loader/dist/cjs.js):
Cannot find module 'sass'
Require stack:
- node_modules/sass-loader/dist/utils.js
- node_modules/sass-loader/dist/index.js
- node_modules/sass-loader/dist/cjs.js
- node_modules/loader-runner/lib/loadLoader.js
- node_modules/loader-runner/lib/LoaderRunner.js
- node_modules/webpack/lib/NormalModuleFactory.js
- node_modules/webpack/lib/Compiler.js
- node_modules/webpack/lib/webpack.js
- node_modules/webpack/lib/index.js
- node_modules/webpack-cli/lib/webpack-cli.js
- node_modules/webpack-cli/lib/bootstrap.js
- node_modules/webpack-cli/bin/cli.js
- node_modules/webpack/bin/webpack.js
 @ ./src/ui/components/Header/header.scss 8:6-159 22:17-24 26:0-129 26:0-129 27:22-29 27:33-47 27:50-64
 @ ./src/ui/components/Header/index.tsx 37:0-24
 @ ./src/ui/pages/Home/index.tsx 36:33-69
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/Header/header.scss (./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/components/Header/header.scss)
Module build failed (from ./node_modules/css-loader/dist/cjs.js):
Error: PostCSS received undefined instead of CSS string
    at new Input (node_modules/postcss/lib/input.js:24:13)
    at parse (node_modules/postcss/lib/parse.js:8:15)
    at new LazyResult (node_modules/postcss/lib/lazy-result.js:133:16)
    at Processor.process (node_modules/postcss/lib/processor.js:28:14)
    at Object.loader (node_modules/css-loader/dist/index.js:109:51)
 @ ./src/ui/components/Header/header.scss 8:6-159 22:17-24 26:0-129 26:0-129 27:22-29 27:33-47 27:50-64
 @ ./src/ui/components/Header/index.tsx 37:0-24
 @ ./src/ui/pages/Home/index.tsx 36:33-69
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/Icon/icon.scss (./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/components/Icon/icon.scss)
Module Error (from ./node_modules/sass-loader/dist/cjs.js):
Cannot find module 'sass'
Require stack:
- node_modules/sass-loader/dist/utils.js
- node_modules/sass-loader/dist/index.js
- node_modules/sass-loader/dist/cjs.js
- node_modules/loader-runner/lib/loadLoader.js
- node_modules/loader-runner/lib/LoaderRunner.js
- node_modules/webpack/lib/NormalModuleFactory.js
- node_modules/webpack/lib/Compiler.js
- node_modules/webpack/lib/webpack.js
- node_modules/webpack/lib/index.js
- node_modules/webpack-cli/lib/webpack-cli.js
- node_modules/webpack-cli/lib/bootstrap.js
- node_modules/webpack-cli/bin/cli.js
- node_modules/webpack/bin/webpack.js
 @ ./src/ui/components/Icon/icon.scss 8:6-157 22:17-24 26:0-127 26:0-127 27:22-29 27:33-47 27:50-64
 @ ./src/ui/components/Icon/index.tsx 34:0-22
 @ ./src/ui/pages/Home/index.tsx 34:31-65
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/Icon/icon.scss (./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/components/Icon/icon.scss)
Module build failed (from ./node_modules/css-loader/dist/cjs.js):
Error: PostCSS received undefined instead of CSS string
    at new Input (node_modules/postcss/lib/input.js:24:13)
    at parse (node_modules/postcss/lib/parse.js:8:15)
    at new LazyResult (node_modules/postcss/lib/lazy-result.js:133:16)
    at Processor.process (node_modules/postcss/lib/processor.js:28:14)
    at Object.loader (node_modules/css-loader/dist/index.js:109:51)
 @ ./src/ui/components/Icon/icon.scss 8:6-157 22:17-24 26:0-127 26:0-127 27:22-29 27:33-47 27:50-64
 @ ./src/ui/components/Icon/index.tsx 34:0-22
 @ ./src/ui/pages/Home/index.tsx 34:31-65
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/Input/input.scss (./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/components/Input/input.scss)
Module Error (from ./node_modules/sass-loader/dist/cjs.js):
Cannot find module 'sass'
Require stack:
- node_modules/sass-loader/dist/utils.js
- node_modules/sass-loader/dist/index.js
- node_modules/sass-loader/dist/cjs.js
- node_modules/loader-runner/lib/loadLoader.js
- node_modules/loader-runner/lib/LoaderRunner.js
- node_modules/webpack/lib/NormalModuleFactory.js
- node_modules/webpack/lib/Compiler.js
- node_modules/webpack/lib/webpack.js
- node_modules/webpack/lib/index.js
- node_modules/webpack-cli/lib/webpack-cli.js
- node_modules/webpack-cli/lib/bootstrap.js
- node_modules/webpack-cli/bin/cli.js
- node_modules/webpack/bin/webpack.js
 @ ./src/ui/components/Input/input.scss 8:6-158 22:17-24 26:0-128 26:0-128 27:22-29 27:33-47 27:50-64
 @ ./src/ui/components/Input/index.tsx 7:0-23
 @ ./src/ui/pages/Onboarding/index.tsx 34:32-67
 @ ./src/ui/pages/Popup/index.tsx 38:37-72
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/Input/input.scss (./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/components/Input/input.scss)
Module build failed (from ./node_modules/css-loader/dist/cjs.js):
Error: PostCSS received undefined instead of CSS string
    at new Input (node_modules/postcss/lib/input.js:24:13)
    at parse (node_modules/postcss/lib/parse.js:8:15)
    at new LazyResult (node_modules/postcss/lib/lazy-result.js:133:16)
    at Processor.process (node_modules/postcss/lib/processor.js:28:14)
    at Object.loader (node_modules/css-loader/dist/index.js:109:51)
 @ ./src/ui/components/Input/input.scss 8:6-158 22:17-24 26:0-128 26:0-128 27:22-29 27:33-47 27:50-64
 @ ./src/ui/components/Input/index.tsx 7:0-23
 @ ./src/ui/pages/Onboarding/index.tsx 34:32-67
 @ ./src/ui/pages/Popup/index.tsx 38:37-72
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/Menuable/menuable.scss (./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/components/Menuable/menuable.scss)
Module Error (from ./node_modules/sass-loader/dist/cjs.js):
Cannot find module 'sass'
Require stack:
- node_modules/sass-loader/dist/utils.js
- node_modules/sass-loader/dist/index.js
- node_modules/sass-loader/dist/cjs.js
- node_modules/loader-runner/lib/loadLoader.js
- node_modules/loader-runner/lib/LoaderRunner.js
- node_modules/webpack/lib/NormalModuleFactory.js
- node_modules/webpack/lib/Compiler.js
- node_modules/webpack/lib/webpack.js
- node_modules/webpack/lib/index.js
- node_modules/webpack-cli/lib/webpack-cli.js
- node_modules/webpack-cli/lib/bootstrap.js
- node_modules/webpack-cli/bin/cli.js
- node_modules/webpack/bin/webpack.js
 @ ./src/ui/components/Menuable/menuable.scss 8:6-161 22:17-24 26:0-131 26:0-131 27:22-29 27:33-47 27:50-64
 @ ./src/ui/components/Menuable/index.tsx 31:0-26
 @ ./src/ui/pages/Home/index.tsx 43:35-73
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/Menuable/menuable.scss (./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/components/Menuable/menuable.scss)
Module build failed (from ./node_modules/css-loader/dist/cjs.js):
Error: PostCSS received undefined instead of CSS string
    at new Input (node_modules/postcss/lib/input.js:24:13)
    at parse (node_modules/postcss/lib/parse.js:8:15)
    at new LazyResult (node_modules/postcss/lib/lazy-result.js:133:16)
    at Processor.process (node_modules/postcss/lib/processor.js:28:14)
    at Object.loader (node_modules/css-loader/dist/index.js:109:51)
 @ ./src/ui/components/Menuable/menuable.scss 8:6-161 22:17-24 26:0-131 26:0-131 27:22-29 27:33-47 27:50-64
 @ ./src/ui/components/Menuable/index.tsx 31:0-26
 @ ./src/ui/pages/Home/index.tsx 43:35-73
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/Modal/modal.scss (./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/components/Modal/modal.scss)
Module Error (from ./node_modules/sass-loader/dist/cjs.js):
Cannot find module 'sass'
Require stack:
- node_modules/sass-loader/dist/utils.js
- node_modules/sass-loader/dist/index.js
- node_modules/sass-loader/dist/cjs.js
- node_modules/loader-runner/lib/loadLoader.js
- node_modules/loader-runner/lib/LoaderRunner.js
- node_modules/webpack/lib/NormalModuleFactory.js
- node_modules/webpack/lib/Compiler.js
- node_modules/webpack/lib/webpack.js
- node_modules/webpack/lib/index.js
- node_modules/webpack-cli/lib/webpack-cli.js
- node_modules/webpack-cli/lib/bootstrap.js
- node_modules/webpack-cli/bin/cli.js
- node_modules/webpack/bin/webpack.js
 @ ./src/ui/components/Modal/modal.scss 8:6-158 22:17-24 26:0-128 26:0-128 27:22-29 27:33-47 27:50-64
 @ ./src/ui/components/Modal/index.tsx 8:0-23
 @ ./src/ui/components/FullModal/index.tsx 8:32-67
 @ ./src/ui/components/ConfirmRequestModal/index.tsx 31:33-72
 @ ./src/ui/pages/Popup/index.tsx 40:46-95
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/components/Modal/modal.scss (./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/components/Modal/modal.scss)
Module build failed (from ./node_modules/css-loader/dist/cjs.js):
Error: PostCSS received undefined instead of CSS string
    at new Input (node_modules/postcss/lib/input.js:24:13)
    at parse (node_modules/postcss/lib/parse.js:8:15)
    at new LazyResult (node_modules/postcss/lib/lazy-result.js:133:16)
    at Processor.process (node_modules/postcss/lib/processor.js:28:14)
    at Object.loader (node_modules/css-loader/dist/index.js:109:51)
 @ ./src/ui/components/Modal/modal.scss 8:6-158 22:17-24 26:0-128 26:0-128 27:22-29 27:33-47 27:50-64
 @ ./src/ui/components/Modal/index.tsx 8:0-23
 @ ./src/ui/components/FullModal/index.tsx 8:32-67
 @ ./src/ui/components/ConfirmRequestModal/index.tsx 31:33-72
 @ ./src/ui/pages/Popup/index.tsx 40:46-95
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/pages/Home/home.scss (./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/pages/Home/home.scss)
Module Error (from ./node_modules/sass-loader/dist/cjs.js):
Cannot find module 'sass'
Require stack:
- node_modules/sass-loader/dist/utils.js
- node_modules/sass-loader/dist/index.js
- node_modules/sass-loader/dist/cjs.js
- node_modules/loader-runner/lib/loadLoader.js
- node_modules/loader-runner/lib/LoaderRunner.js
- node_modules/webpack/lib/NormalModuleFactory.js
- node_modules/webpack/lib/Compiler.js
- node_modules/webpack/lib/webpack.js
- node_modules/webpack/lib/index.js
- node_modules/webpack-cli/lib/webpack-cli.js
- node_modules/webpack-cli/lib/bootstrap.js
- node_modules/webpack-cli/bin/cli.js
- node_modules/webpack/bin/webpack.js
 @ ./src/ui/pages/Home/home.scss 8:6-157 22:17-24 26:0-127 26:0-127 27:22-29 27:33-47 27:50-64
 @ ./src/ui/pages/Home/index.tsx 39:0-22
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/pages/Home/home.scss (./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/pages/Home/home.scss)
Module build failed (from ./node_modules/css-loader/dist/cjs.js):
Error: PostCSS received undefined instead of CSS string
    at new Input (node_modules/postcss/lib/input.js:24:13)
    at parse (node_modules/postcss/lib/parse.js:8:15)
    at new LazyResult (node_modules/postcss/lib/lazy-result.js:133:16)
    at Processor.process (node_modules/postcss/lib/processor.js:28:14)
    at Object.loader (node_modules/css-loader/dist/index.js:109:51)
 @ ./src/ui/pages/Home/home.scss 8:6-157 22:17-24 26:0-127 26:0-127 27:22-29 27:33-47 27:50-64
 @ ./src/ui/pages/Home/index.tsx 39:0-22
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/pages/Login/login.scss (./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/pages/Login/login.scss)
Module Error (from ./node_modules/sass-loader/dist/cjs.js):
Cannot find module 'sass'
Require stack:
- node_modules/sass-loader/dist/utils.js
- node_modules/sass-loader/dist/index.js
- node_modules/sass-loader/dist/cjs.js
- node_modules/loader-runner/lib/loadLoader.js
- node_modules/loader-runner/lib/LoaderRunner.js
- node_modules/webpack/lib/NormalModuleFactory.js
- node_modules/webpack/lib/Compiler.js
- node_modules/webpack/lib/webpack.js
- node_modules/webpack/lib/index.js
- node_modules/webpack-cli/lib/webpack-cli.js
- node_modules/webpack-cli/lib/bootstrap.js
- node_modules/webpack-cli/bin/cli.js
- node_modules/webpack/bin/webpack.js
 @ ./src/ui/pages/Login/login.scss 8:6-158 22:17-24 26:0-128 26:0-128 27:22-29 27:33-47 27:50-64
 @ ./src/ui/pages/Login/index.tsx 30:0-23
 @ ./src/ui/pages/Popup/index.tsx 39:32-62
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/pages/Login/login.scss (./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/pages/Login/login.scss)
Module build failed (from ./node_modules/css-loader/dist/cjs.js):
Error: PostCSS received undefined instead of CSS string
    at new Input (node_modules/postcss/lib/input.js:24:13)
    at parse (node_modules/postcss/lib/parse.js:8:15)
    at new LazyResult (node_modules/postcss/lib/lazy-result.js:133:16)
    at Processor.process (node_modules/postcss/lib/processor.js:28:14)
    at Object.loader (node_modules/css-loader/dist/index.js:109:51)
 @ ./src/ui/pages/Login/login.scss 8:6-158 22:17-24 26:0-128 26:0-128 27:22-29 27:33-47 27:50-64
 @ ./src/ui/pages/Login/index.tsx 30:0-23
 @ ./src/ui/pages/Popup/index.tsx 39:32-62
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/pages/Onboarding/onboarding.scss (./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/pages/Onboarding/onboarding.scss)
Module Error (from ./node_modules/sass-loader/dist/cjs.js):
Cannot find module 'sass'
Require stack:
- node_modules/sass-loader/dist/utils.js
- node_modules/sass-loader/dist/index.js
- node_modules/sass-loader/dist/cjs.js
- node_modules/loader-runner/lib/loadLoader.js
- node_modules/loader-runner/lib/LoaderRunner.js
- node_modules/webpack/lib/NormalModuleFactory.js
- node_modules/webpack/lib/Compiler.js
- node_modules/webpack/lib/webpack.js
- node_modules/webpack/lib/index.js
- node_modules/webpack-cli/lib/webpack-cli.js
- node_modules/webpack-cli/lib/bootstrap.js
- node_modules/webpack-cli/bin/cli.js
- node_modules/webpack/bin/webpack.js
 @ ./src/ui/pages/Onboarding/onboarding.scss 8:6-163 22:17-24 26:0-133 26:0-133 27:22-29 27:33-47 27:50-64
 @ ./src/ui/pages/Onboarding/index.tsx 30:0-28
 @ ./src/ui/pages/Popup/index.tsx 38:37-72
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/pages/Onboarding/onboarding.scss (./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/pages/Onboarding/onboarding.scss)
Module build failed (from ./node_modules/css-loader/dist/cjs.js):
Error: PostCSS received undefined instead of CSS string
    at new Input (node_modules/postcss/lib/input.js:24:13)
    at parse (node_modules/postcss/lib/parse.js:8:15)
    at new LazyResult (node_modules/postcss/lib/lazy-result.js:133:16)
    at Processor.process (node_modules/postcss/lib/processor.js:28:14)
    at Object.loader (node_modules/css-loader/dist/index.js:109:51)
 @ ./src/ui/pages/Onboarding/onboarding.scss 8:6-163 22:17-24 26:0-133 26:0-133 27:22-29 27:33-47 27:50-64
 @ ./src/ui/pages/Onboarding/index.tsx 30:0-28
 @ ./src/ui/pages/Popup/index.tsx 38:37-72
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/pages/Popup/popup.scss (./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/pages/Popup/popup.scss)
Module Error (from ./node_modules/sass-loader/dist/cjs.js):
Cannot find module 'sass'
Require stack:
- node_modules/sass-loader/dist/utils.js
- node_modules/sass-loader/dist/index.js
- node_modules/sass-loader/dist/cjs.js
- node_modules/loader-runner/lib/loadLoader.js
- node_modules/loader-runner/lib/LoaderRunner.js
- node_modules/webpack/lib/NormalModuleFactory.js
- node_modules/webpack/lib/Compiler.js
- node_modules/webpack/lib/webpack.js
- node_modules/webpack/lib/index.js
- node_modules/webpack-cli/lib/webpack-cli.js
- node_modules/webpack-cli/lib/bootstrap.js
- node_modules/webpack-cli/bin/cli.js
- node_modules/webpack/bin/webpack.js
 @ ./src/ui/pages/Popup/popup.scss 8:6-158 22:17-24 26:0-128 26:0-128 27:22-29 27:33-47 27:50-64
 @ ./src/ui/pages/Popup/index.tsx 32:0-23
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./src/ui/pages/Popup/popup.scss (./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/pages/Popup/popup.scss)
Module build failed (from ./node_modules/css-loader/dist/cjs.js):
Error: PostCSS received undefined instead of CSS string
    at new Input (node_modules/postcss/lib/input.js:24:13)
    at parse (node_modules/postcss/lib/parse.js:8:15)
    at new LazyResult (node_modules/postcss/lib/lazy-result.js:133:16)
    at Processor.process (node_modules/postcss/lib/processor.js:28:14)
    at Object.loader (node_modules/css-loader/dist/index.js:109:51)
 @ ./src/ui/pages/Popup/popup.scss 8:6-158 22:17-24 26:0-128 26:0-128 27:22-29 27:33-47 27:50-64
 @ ./src/ui/pages/Popup/index.tsx 32:0-23
 @ ./src/ui/popup.tsx 32:32-62

ERROR in ./node_modules/axios/dist/node/axios.cjs 10:13-28
Module not found: Error: Can't resolve 'zlib' in 'node_modules/axios/dist/node'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
    - add a fallback 'resolve.fallback: { "zlib": require.resolve("browserify-zlib") }'
    - install 'browserify-zlib'
If you don't want to include a polyfill, you can use an empty module like this:
    resolve.fallback: { "zlib": false }
 @ ./src/background/services/protocols/semaphore.ts 8:32-48
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in ./node_modules/fastfile/build/main.cjs 8:16-36
Module not found: Error: Can't resolve 'constants' in 'node_modules/fastfile/build'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
    - add a fallback 'resolve.fallback: { "constants": require.resolve("constants-browserify") }'
    - install 'constants-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
    resolve.fallback: { "constants": false }
 @ ./node_modules/snarkjs/build/main.cjs 10:15-34
 @ ./node_modules/@zk-kit/protocols/dist/index.node.js 17:14-32
 @ ./src/background/services/protocols/semaphore.ts 6:20-48
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in ./node_modules/snarkjs/build/main.cjs 8:15-34
Module not found: Error: Can't resolve 'readline' in 'node_modules/snarkjs/build'
 @ ./node_modules/@zk-kit/protocols/dist/index.node.js 17:14-32
 @ ./src/background/services/protocols/semaphore.ts 6:20-48
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/identity-factory.test.ts
4:0-8
[tsl] ERROR in src/background/identity-factory.test.ts(4,1)
      TS2582: Cannot find name 'describe'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.

ERROR in src/background/identity-factory.test.ts
5:4-6
[tsl] ERROR in src/background/identity-factory.test.ts(5,5)
      TS2582: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.

ERROR in src/background/identity-factory.test.ts
8:14-20
[tsl] ERROR in src/background/identity-factory.test.ts(8,15)
      TS2304: Cannot find name 'expect'.

ERROR in src/background/identity-factory.test.ts
11:4-6
[tsl] ERROR in src/background/identity-factory.test.ts(11,5)
      TS2582: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.

ERROR in src/background/identity-factory.test.ts
15:8-14
[tsl] ERROR in src/background/identity-factory.test.ts(15,9)
      TS2304: Cannot find name 'expect'.

ERROR in src/background/identity-factory.test.ts
16:8-14
[tsl] ERROR in src/background/identity-factory.test.ts(16,9)
      TS2304: Cannot find name 'expect'.

ERROR in src/background/identity-factory.test.ts
17:8-14
[tsl] ERROR in src/background/identity-factory.test.ts(17,9)
      TS2304: Cannot find name 'expect'.

ERROR in src/background/identity-factory.test.ts
20:4-6
[tsl] ERROR in src/background/identity-factory.test.ts(20,5)
      TS2582: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.

ERROR in src/background/identity-factory.test.ts
23:14-20
[tsl] ERROR in src/background/identity-factory.test.ts(23,15)
      TS2304: Cannot find name 'expect'.

ERROR in src/background/identity-factory.ts
./src/background/identity-factory.ts 26:10-18
[tsl] ERROR in src/background/identity-factory.ts(26,11)
      TS2740: Type 'Identity' is missing the following properties from type 'ZkIdentity': _identityTrapdoor, _identityNullifier, _secret, getSecret, and 3 more.
 @ ./src/background/zk-kepeer.ts 18:43-72
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/services/protocols/rln.ts
./src/background/services/protocols/rln.ts 42:20-38
[tsl] ERROR in src/background/services/protocols/rln.ts(42,21)
      TS2554: Expected 4 arguments, but got 5.
 @ ./src/background/zk-kepeer.ts 16:30-65
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/services/protocols/semaphore.ts
./src/background/services/protocols/semaphore.ts 7:4-17
[tsl] ERROR in src/background/services/protocols/semaphore.ts(7,5)
      TS2305: Module '"@zk-kit/protocols"' has no exported member 'genSignalHash'.
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/services/protocols/semaphore.ts
./src/background/services/protocols/semaphore.ts 51:20-38
[tsl] ERROR in src/background/services/protocols/semaphore.ts(51,21)
      TS2554: Expected 4 arguments, but got 5.
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/services/protocols/semaphore.ts
./src/background/services/protocols/semaphore.ts 65:88-97
[tsl] ERROR in src/background/services/protocols/semaphore.ts(65,89)
      TS2345: Argument of type 'SemaphoreFullProof' is not assignable to parameter of type 'Proof'.
  Type 'SemaphoreFullProof' is missing the following properties from type 'Proof': pi_a, pi_b, pi_c, protocol, curve
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/ui/components/CreateIdentityModal/index.tsx
./src/ui/components/CreateIdentityModal/index.tsx 31:27-60
[tsl] ERROR in src/ui/components/CreateIdentityModal/index.tsx(31,28)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<any>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Home/index.tsx 41:46-95
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 30:13-30
[tsl] ERROR in src/ui/pages/Home/index.tsx(30,14)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 31:13-30
[tsl] ERROR in src/ui/pages/Home/index.tsx(31,14)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 184:13-50
[tsl] ERROR in src/ui/pages/Home/index.tsx(184,14)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<any>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 188:21-62
[tsl] ERROR in src/ui/pages/Home/index.tsx(188,22)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<any>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 193:19-53
[tsl] ERROR in src/ui/pages/Home/index.tsx(193,20)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<any>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 212:13-30
[tsl] ERROR in src/ui/pages/Home/index.tsx(212,14)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 5:9-17
[tsl] ERROR in src/ui/pages/Popup/index.tsx(5,10)
      TS2724: '"react-router"' has no exported member named 'Redirect'. Did you mean 'redirect'?
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 5:26-32
[tsl] ERROR in src/ui/pages/Popup/index.tsx(5,27)
      TS2305: Module '"react-router"' has no exported member 'Switch'.
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 23:31-44
[tsl] ERROR in src/ui/pages/Popup/index.tsx(23,32)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 24:31-58
[tsl] ERROR in src/ui/pages/Popup/index.tsx(24,32)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 34:17-44
[tsl] ERROR in src/ui/pages/Popup/index.tsx(34,18)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/popup.tsx 32:32-62

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

webpack 5.75.0 compiled with 57 errors in 12718 ms
0xisk commented 1 year ago

Resolving this error by installing this command: npm install --save-dev sass

Module Error (from ./node_modules/: Cannot find module 'sass'

29 remaining errors

ERROR in ./node_modules/axios/dist/node/axios.cjs 10:13-28
Module not found: Error: Can't resolve 'zlib' in 'node_modules/axios/dist/node'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
    - add a fallback 'resolve.fallback: { "zlib": require.resolve("browserify-zlib") }'
    - install 'browserify-zlib'
If you don't want to include a polyfill, you can use an empty module like this:
    resolve.fallback: { "zlib": false }
 @ ./src/background/services/protocols/semaphore.ts 8:32-48
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in ./node_modules/fastfile/build/main.cjs 8:16-36
Module not found: Error: Can't resolve 'constants' in 'node_modules/fastfile/build'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
    - add a fallback 'resolve.fallback: { "constants": require.resolve("constants-browserify") }'
    - install 'constants-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
    resolve.fallback: { "constants": false }
 @ ./node_modules/snarkjs/build/main.cjs 10:15-34
 @ ./node_modules/@zk-kit/protocols/dist/index.node.js 17:14-32
 @ ./src/background/services/protocols/semaphore.ts 6:20-48
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in ./node_modules/snarkjs/build/main.cjs 8:15-34
Module not found: Error: Can't resolve 'readline' in 'node_modules/snarkjs/build'
 @ ./node_modules/@zk-kit/protocols/dist/index.node.js 17:14-32
 @ ./src/background/services/protocols/semaphore.ts 6:20-48
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/identity-factory.test.ts
4:0-8
[tsl] ERROR in src/background/identity-factory.test.ts(4,1)
      TS2582: Cannot find name 'describe'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.

ERROR in src/background/identity-factory.test.ts
5:4-6
[tsl] ERROR in src/background/identity-factory.test.ts(5,5)
      TS2582: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.

ERROR in src/background/identity-factory.test.ts
8:14-20
[tsl] ERROR in src/background/identity-factory.test.ts(8,15)
      TS2304: Cannot find name 'expect'.

ERROR in src/background/identity-factory.test.ts
11:4-6
[tsl] ERROR in src/background/identity-factory.test.ts(11,5)
      TS2582: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.

ERROR in src/background/identity-factory.test.ts
15:8-14
[tsl] ERROR in src/background/identity-factory.test.ts(15,9)
      TS2304: Cannot find name 'expect'.

ERROR in src/background/identity-factory.test.ts
16:8-14
[tsl] ERROR in src/background/identity-factory.test.ts(16,9)
      TS2304: Cannot find name 'expect'.

ERROR in src/background/identity-factory.test.ts
17:8-14
[tsl] ERROR in src/background/identity-factory.test.ts(17,9)
      TS2304: Cannot find name 'expect'.

ERROR in src/background/identity-factory.test.ts
20:4-6
[tsl] ERROR in src/background/identity-factory.test.ts(20,5)
      TS2582: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.

ERROR in src/background/identity-factory.test.ts
23:14-20
[tsl] ERROR in src/background/identity-factory.test.ts(23,15)
      TS2304: Cannot find name 'expect'.

ERROR in src/background/identity-factory.ts
./src/background/identity-factory.ts 26:10-18
[tsl] ERROR in src/background/identity-factory.ts(26,11)
      TS2740: Type 'Identity' is missing the following properties from type 'ZkIdentity': _identityTrapdoor, _identityNullifier, _secret, getSecret, and 3 more.
 @ ./src/background/zk-kepeer.ts 18:43-72
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/services/protocols/rln.ts
./src/background/services/protocols/rln.ts 42:20-38
[tsl] ERROR in src/background/services/protocols/rln.ts(42,21)
      TS2554: Expected 4 arguments, but got 5.
 @ ./src/background/zk-kepeer.ts 16:30-65
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/services/protocols/semaphore.ts
./src/background/services/protocols/semaphore.ts 7:4-17
[tsl] ERROR in src/background/services/protocols/semaphore.ts(7,5)
      TS2305: Module '"@zk-kit/protocols"' has no exported member 'genSignalHash'.
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/services/protocols/semaphore.ts
./src/background/services/protocols/semaphore.ts 51:20-38
[tsl] ERROR in src/background/services/protocols/semaphore.ts(51,21)
      TS2554: Expected 4 arguments, but got 5.
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/services/protocols/semaphore.ts
./src/background/services/protocols/semaphore.ts 65:88-97
[tsl] ERROR in src/background/services/protocols/semaphore.ts(65,89)
      TS2345: Argument of type 'SemaphoreFullProof' is not assignable to parameter of type 'Proof'.
  Type 'SemaphoreFullProof' is missing the following properties from type 'Proof': pi_a, pi_b, pi_c, protocol, curve
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/ui/components/CreateIdentityModal/index.tsx
./src/ui/components/CreateIdentityModal/index.tsx 31:27-60
[tsl] ERROR in src/ui/components/CreateIdentityModal/index.tsx(31,28)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<any>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Home/index.tsx 41:46-95
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 30:13-30
[tsl] ERROR in src/ui/pages/Home/index.tsx(30,14)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 31:13-30
[tsl] ERROR in src/ui/pages/Home/index.tsx(31,14)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 184:13-50
[tsl] ERROR in src/ui/pages/Home/index.tsx(184,14)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<any>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 188:21-62
[tsl] ERROR in src/ui/pages/Home/index.tsx(188,22)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<any>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 193:19-53
[tsl] ERROR in src/ui/pages/Home/index.tsx(193,20)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<any>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 212:13-30
[tsl] ERROR in src/ui/pages/Home/index.tsx(212,14)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 5:9-17
[tsl] ERROR in src/ui/pages/Popup/index.tsx(5,10)
      TS2724: '"react-router"' has no exported member named 'Redirect'. Did you mean 'redirect'?
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 5:26-32
[tsl] ERROR in src/ui/pages/Popup/index.tsx(5,27)
      TS2305: Module '"react-router"' has no exported member 'Switch'.
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 23:31-44
[tsl] ERROR in src/ui/pages/Popup/index.tsx(23,32)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 24:31-58
[tsl] ERROR in src/ui/pages/Popup/index.tsx(24,32)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 34:17-44
[tsl] ERROR in src/ui/pages/Popup/index.tsx(34,18)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/popup.tsx 32:32-62

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

webpack 5.75.0 compiled with 29 errors in 13094 ms
0xisk commented 1 year ago

Resolving those two errors in this commit: https://github.com/privacy-scaling-explorations/crypt-keeper-extension/commit/46b294b74f0d613e4c5870959f7d68f613943cad

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
    - add a fallback 'resolve.fallback: { "zlib": require.resolve("browserify-zlib") }'
    - install 'browserify-zlib'
If you don't want to include a polyfill, you can use an empty module like this:
    resolve.fallback: { "zlib": false }

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:
    - add a fallback 'resolve.fallback: { "constants": require.resolve("constants-browserify") }'
    - install 'constants-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
    resolve.fallback: { "constants": false }

27 remaining errors


ERROR in ./node_modules/snarkjs/build/main.cjs 8:15-34
Module not found: Error: Can't resolve 'readline' in 'node_modules/snarkjs/build'
 @ ./node_modules/@zk-kit/protocols/dist/index.node.js 17:14-32
 @ ./src/background/services/protocols/semaphore.ts 6:20-48
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/identity-factory.test.ts
4:0-8
[tsl] ERROR in src/background/identity-factory.test.ts(4,1)
      TS2582: Cannot find name 'describe'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.

ERROR in src/background/identity-factory.test.ts
5:4-6
[tsl] ERROR in src/background/identity-factory.test.ts(5,5)
      TS2582: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.

ERROR in src/background/identity-factory.test.ts
8:14-20
[tsl] ERROR in src/background/identity-factory.test.ts(8,15)
      TS2304: Cannot find name 'expect'.

ERROR in src/background/identity-factory.test.ts
11:4-6
[tsl] ERROR in src/background/identity-factory.test.ts(11,5)
      TS2582: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.

ERROR in src/background/identity-factory.test.ts
15:8-14
[tsl] ERROR in src/background/identity-factory.test.ts(15,9)
      TS2304: Cannot find name 'expect'.

ERROR in src/background/identity-factory.test.ts
16:8-14
[tsl] ERROR in src/background/identity-factory.test.ts(16,9)
      TS2304: Cannot find name 'expect'.

ERROR in src/background/identity-factory.test.ts
17:8-14
[tsl] ERROR in src/background/identity-factory.test.ts(17,9)
      TS2304: Cannot find name 'expect'.

ERROR in src/background/identity-factory.test.ts
20:4-6
[tsl] ERROR in src/background/identity-factory.test.ts(20,5)
      TS2582: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.

ERROR in src/background/identity-factory.test.ts
23:14-20
[tsl] ERROR in src/background/identity-factory.test.ts(23,15)
      TS2304: Cannot find name 'expect'.

ERROR in src/background/identity-factory.ts
./src/background/identity-factory.ts 26:10-18
[tsl] ERROR in src/background/identity-factory.ts(26,11)
      TS2740: Type 'Identity' is missing the following properties from type 'ZkIdentity': _identityTrapdoor, _identityNullifier, _secret, getSecret, and 3 more.
 @ ./src/background/zk-kepeer.ts 18:43-72
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/services/protocols/rln.ts
./src/background/services/protocols/rln.ts 42:20-38
[tsl] ERROR in src/background/services/protocols/rln.ts(42,21)
      TS2554: Expected 4 arguments, but got 5.
 @ ./src/background/zk-kepeer.ts 16:30-65
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/services/protocols/semaphore.ts
./src/background/services/protocols/semaphore.ts 7:4-17
[tsl] ERROR in src/background/services/protocols/semaphore.ts(7,5)
      TS2305: Module '"@zk-kit/protocols"' has no exported member 'genSignalHash'.
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/services/protocols/semaphore.ts
./src/background/services/protocols/semaphore.ts 51:20-38
[tsl] ERROR in src/background/services/protocols/semaphore.ts(51,21)
      TS2554: Expected 4 arguments, but got 5.
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/services/protocols/semaphore.ts
./src/background/services/protocols/semaphore.ts 65:88-97
[tsl] ERROR in src/background/services/protocols/semaphore.ts(65,89)
      TS2345: Argument of type 'SemaphoreFullProof' is not assignable to parameter of type 'Proof'.
  Type 'SemaphoreFullProof' is missing the following properties from type 'Proof': pi_a, pi_b, pi_c, protocol, curve
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/ui/components/CreateIdentityModal/index.tsx
./src/ui/components/CreateIdentityModal/index.tsx 31:27-60
[tsl] ERROR in src/ui/components/CreateIdentityModal/index.tsx(31,28)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<any>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Home/index.tsx 41:46-95
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 30:13-30
[tsl] ERROR in src/ui/pages/Home/index.tsx(30,14)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 31:13-30
[tsl] ERROR in src/ui/pages/Home/index.tsx(31,14)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 184:13-50
[tsl] ERROR in src/ui/pages/Home/index.tsx(184,14)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<any>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 188:21-62
[tsl] ERROR in src/ui/pages/Home/index.tsx(188,22)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<any>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 193:19-53
[tsl] ERROR in src/ui/pages/Home/index.tsx(193,20)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<any>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 212:13-30
[tsl] ERROR in src/ui/pages/Home/index.tsx(212,14)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 5:9-17
[tsl] ERROR in src/ui/pages/Popup/index.tsx(5,10)
      TS2724: '"react-router"' has no exported member named 'Redirect'. Did you mean 'redirect'?
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 5:26-32
[tsl] ERROR in src/ui/pages/Popup/index.tsx(5,27)
      TS2305: Module '"react-router"' has no exported member 'Switch'.
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 23:31-44
[tsl] ERROR in src/ui/pages/Popup/index.tsx(23,32)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 24:31-58
[tsl] ERROR in src/ui/pages/Popup/index.tsx(24,32)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 34:17-44
[tsl] ERROR in src/ui/pages/Popup/index.tsx(34,18)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/popup.tsx 32:32-62

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

webpack 5.75.0 compiled with 27 errors in 13233 ms
0xisk commented 1 year ago

Resolving this error by installing this command: npm install --save-dev readline

Module not found: Error: Can't resolve 'readline'

26 remaining errors:

ERROR in src/background/identity-factory.test.ts
4:0-8
[tsl] ERROR in src/background/identity-factory.test.ts(4,1)
      TS2582: Cannot find name 'describe'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.

ERROR in src/background/identity-factory.test.ts
5:4-6
[tsl] ERROR in src/background/identity-factory.test.ts(5,5)
      TS2582: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.

ERROR in src/background/identity-factory.test.ts
8:14-20
[tsl] ERROR in src/background/identity-factory.test.ts(8,15)
      TS2304: Cannot find name 'expect'.

ERROR in src/background/identity-factory.test.ts
11:4-6
[tsl] ERROR in src/background/identity-factory.test.ts(11,5)
      TS2582: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.

ERROR in src/background/identity-factory.test.ts
15:8-14
[tsl] ERROR in src/background/identity-factory.test.ts(15,9)
      TS2304: Cannot find name 'expect'.

ERROR in src/background/identity-factory.test.ts
16:8-14
[tsl] ERROR in src/background/identity-factory.test.ts(16,9)
      TS2304: Cannot find name 'expect'.

ERROR in src/background/identity-factory.test.ts
17:8-14
[tsl] ERROR in src/background/identity-factory.test.ts(17,9)
      TS2304: Cannot find name 'expect'.

ERROR in src/background/identity-factory.test.ts
20:4-6
[tsl] ERROR in src/background/identity-factory.test.ts(20,5)
      TS2582: Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.

ERROR in src/background/identity-factory.test.ts
23:14-20
[tsl] ERROR in src/background/identity-factory.test.ts(23,15)
      TS2304: Cannot find name 'expect'.

ERROR in src/background/identity-factory.ts
./src/background/identity-factory.ts 26:10-18
[tsl] ERROR in src/background/identity-factory.ts(26,11)
      TS2740: Type 'Identity' is missing the following properties from type 'ZkIdentity': _identityTrapdoor, _identityNullifier, _secret, getSecret, and 3 more.
 @ ./src/background/zk-kepeer.ts 18:43-72
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/services/protocols/rln.ts
./src/background/services/protocols/rln.ts 42:20-38
[tsl] ERROR in src/background/services/protocols/rln.ts(42,21)
      TS2554: Expected 4 arguments, but got 5.
 @ ./src/background/zk-kepeer.ts 16:30-65
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/services/protocols/semaphore.ts
./src/background/services/protocols/semaphore.ts 7:4-17
[tsl] ERROR in src/background/services/protocols/semaphore.ts(7,5)
      TS2305: Module '"@zk-kit/protocols"' has no exported member 'genSignalHash'.
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/services/protocols/semaphore.ts
./src/background/services/protocols/semaphore.ts 51:20-38
[tsl] ERROR in src/background/services/protocols/semaphore.ts(51,21)
      TS2554: Expected 4 arguments, but got 5.
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/services/protocols/semaphore.ts
./src/background/services/protocols/semaphore.ts 65:88-97
[tsl] ERROR in src/background/services/protocols/semaphore.ts(65,89)
      TS2345: Argument of type 'SemaphoreFullProof' is not assignable to parameter of type 'Proof'.
  Type 'SemaphoreFullProof' is missing the following properties from type 'Proof': pi_a, pi_b, pi_c, protocol, curve
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/ui/components/CreateIdentityModal/index.tsx
./src/ui/components/CreateIdentityModal/index.tsx 31:27-60
[tsl] ERROR in src/ui/components/CreateIdentityModal/index.tsx(31,28)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<any>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Home/index.tsx 41:46-95
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 30:13-30
[tsl] ERROR in src/ui/pages/Home/index.tsx(30,14)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 31:13-30
[tsl] ERROR in src/ui/pages/Home/index.tsx(31,14)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 184:13-50
[tsl] ERROR in src/ui/pages/Home/index.tsx(184,14)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<any>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 188:21-62
[tsl] ERROR in src/ui/pages/Home/index.tsx(188,22)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<any>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 193:19-53
[tsl] ERROR in src/ui/pages/Home/index.tsx(193,20)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<any>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 212:13-30
[tsl] ERROR in src/ui/pages/Home/index.tsx(212,14)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 5:9-17
[tsl] ERROR in src/ui/pages/Popup/index.tsx(5,10)
      TS2724: '"react-router"' has no exported member named 'Redirect'. Did you mean 'redirect'?
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 5:26-32
[tsl] ERROR in src/ui/pages/Popup/index.tsx(5,27)
      TS2305: Module '"react-router"' has no exported member 'Switch'.
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 23:31-44
[tsl] ERROR in src/ui/pages/Popup/index.tsx(23,32)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 24:31-58
[tsl] ERROR in src/ui/pages/Popup/index.tsx(24,32)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 34:17-44
[tsl] ERROR in src/ui/pages/Popup/index.tsx(34,18)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/popup.tsx 32:32-62

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

webpack 5.75.0 compiled with 26 errors in 13405 ms
0xisk commented 1 year ago

Resolving those errors by installing this command npm i --save-dev @types/jest

 TS2582: Cannot find name 'it'
 TS2582: Cannot find name 'describe'

17 remaining errors

ERROR in src/background/identity-factory.ts
./src/background/identity-factory.ts 26:10-18
[tsl] ERROR in src/background/identity-factory.ts(26,11)
      TS2740: Type 'Identity' is missing the following properties from type 'ZkIdentity': _identityTrapdoor, _identityNullifier, _secret, getSecret, and 3 more.
 @ ./src/background/zk-kepeer.ts 18:43-72
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/services/protocols/rln.ts
./src/background/services/protocols/rln.ts 42:20-38
[tsl] ERROR in src/background/services/protocols/rln.ts(42,21)
      TS2554: Expected 4 arguments, but got 5.
 @ ./src/background/zk-kepeer.ts 16:30-65
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/services/protocols/semaphore.ts
./src/background/services/protocols/semaphore.ts 7:4-17
[tsl] ERROR in src/background/services/protocols/semaphore.ts(7,5)
      TS2305: Module '"@zk-kit/protocols"' has no exported member 'genSignalHash'.
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/services/protocols/semaphore.ts
./src/background/services/protocols/semaphore.ts 51:20-38
[tsl] ERROR in src/background/services/protocols/semaphore.ts(51,21)
      TS2554: Expected 4 arguments, but got 5.
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/services/protocols/semaphore.ts
./src/background/services/protocols/semaphore.ts 65:88-97
[tsl] ERROR in src/background/services/protocols/semaphore.ts(65,89)
      TS2345: Argument of type 'SemaphoreFullProof' is not assignable to parameter of type 'Proof'.
  Type 'SemaphoreFullProof' is missing the following properties from type 'Proof': pi_a, pi_b, pi_c, protocol, curve
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/ui/components/CreateIdentityModal/index.tsx
./src/ui/components/CreateIdentityModal/index.tsx 31:27-60
[tsl] ERROR in src/ui/components/CreateIdentityModal/index.tsx(31,28)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<any>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Home/index.tsx 41:46-95
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 30:13-30
[tsl] ERROR in src/ui/pages/Home/index.tsx(30,14)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 31:13-30
[tsl] ERROR in src/ui/pages/Home/index.tsx(31,14)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 184:13-50
[tsl] ERROR in src/ui/pages/Home/index.tsx(184,14)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<any>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 188:21-62
[tsl] ERROR in src/ui/pages/Home/index.tsx(188,22)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<any>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 193:19-53
[tsl] ERROR in src/ui/pages/Home/index.tsx(193,20)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<any>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 212:13-30
[tsl] ERROR in src/ui/pages/Home/index.tsx(212,14)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 5:9-17
[tsl] ERROR in src/ui/pages/Popup/index.tsx(5,10)
      TS2724: '"react-router"' has no exported member named 'Redirect'. Did you mean 'redirect'?
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 5:26-32
[tsl] ERROR in src/ui/pages/Popup/index.tsx(5,27)
      TS2305: Module '"react-router"' has no exported member 'Switch'.
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 23:31-44
[tsl] ERROR in src/ui/pages/Popup/index.tsx(23,32)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 24:31-58
[tsl] ERROR in src/ui/pages/Popup/index.tsx(24,32)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 34:17-44
[tsl] ERROR in src/ui/pages/Popup/index.tsx(34,18)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/popup.tsx 32:32-62

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

webpack 5.75.0 compiled with 17 errors in 13011 ms
0xisk commented 1 year ago

Resolving those 10 Redux errors in this commit: https://github.com/privacy-scaling-explorations/crypt-keeper-extension/commit/aebdcda402692bb063b0982183e46c097490cbd4

Refs:

ERROR in src/ui/components/CreateIdentityModal/index.tsx
./src/ui/components/CreateIdentityModal/index.tsx 31:27-60
[tsl] ERROR in src/ui/components/CreateIdentityModal/index.tsx(31,28)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<any>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Home/index.tsx 41:46-95
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 30:13-30
[tsl] ERROR in src/ui/pages/Home/index.tsx(30,14)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 31:13-30
[tsl] ERROR in src/ui/pages/Home/index.tsx(31,14)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 184:13-50
[tsl] ERROR in src/ui/pages/Home/index.tsx(184,14)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<any>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 188:21-62
[tsl] ERROR in src/ui/pages/Home/index.tsx(188,22)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<any>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 193:19-53
[tsl] ERROR in src/ui/pages/Home/index.tsx(193,20)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<any>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Home/index.tsx
./src/ui/pages/Home/index.tsx 212:13-30
[tsl] ERROR in src/ui/pages/Home/index.tsx(212,14)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/pages/Popup/index.tsx 34:31-60
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 23:31-44
[tsl] ERROR in src/ui/pages/Popup/index.tsx(23,32)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 24:31-58
[tsl] ERROR in src/ui/pages/Popup/index.tsx(24,32)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 34:17-44
[tsl] ERROR in src/ui/pages/Popup/index.tsx(34,18)
      TS2345: Argument of type '(dispatch: Dispatch) => Promise<void>' is not assignable to parameter of type 'AnyAction'.
 @ ./src/ui/popup.tsx 32:32-62

7 remaining errors:

ERROR in src/background/identity-factory.ts
./src/background/identity-factory.ts 26:10-18
[tsl] ERROR in src/background/identity-factory.ts(26,11)
      TS2740: Type 'Identity' is missing the following properties from type 'ZkIdentity': _identityTrapdoor, _identityNullifier, _secret, getSecret, and 3 more.
 @ ./src/background/zk-kepeer.ts 18:43-72
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/services/protocols/rln.ts
./src/background/services/protocols/rln.ts 42:20-38
[tsl] ERROR in src/background/services/protocols/rln.ts(42,21)
      TS2554: Expected 4 arguments, but got 5.
 @ ./src/background/zk-kepeer.ts 16:30-65
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/services/protocols/semaphore.ts
./src/background/services/protocols/semaphore.ts 7:4-17
[tsl] ERROR in src/background/services/protocols/semaphore.ts(7,5)
      TS2305: Module '"@zk-kit/protocols"' has no exported member 'genSignalHash'.
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/services/protocols/semaphore.ts
./src/background/services/protocols/semaphore.ts 51:20-38
[tsl] ERROR in src/background/services/protocols/semaphore.ts(51,21)
      TS2554: Expected 4 arguments, but got 5.
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/services/protocols/semaphore.ts
./src/background/services/protocols/semaphore.ts 65:88-97
[tsl] ERROR in src/background/services/protocols/semaphore.ts(65,89)
      TS2345: Argument of type 'SemaphoreFullProof' is not assignable to parameter of type 'Proof'.
  Type 'SemaphoreFullProof' is missing the following properties from type 'Proof': pi_a, pi_b, pi_c, protocol, curve
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 5:9-17
[tsl] ERROR in src/ui/pages/Popup/index.tsx(5,10)
      TS2724: '"react-router"' has no exported member named 'Redirect'. Did you mean 'redirect'?
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 5:26-32
[tsl] ERROR in src/ui/pages/Popup/index.tsx(5,27)
      TS2305: Module '"react-router"' has no exported member 'Switch'.
 @ ./src/ui/popup.tsx 32:32-62

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

webpack 5.75.0 compiled with 7 errors in 13301 ms
0xisk commented 1 year ago

Resolving this error in this commit: https://github.com/privacy-scaling-explorations/crypt-keeper-extension/commit/93212326337687163587f2a5eef4704ae0a594ec

Ref: https://github.com/remix-run/react-router/issues/8439#issuecomment-985370774

TS2305: Module '"react-router"' has no exported member 'Switch'.

6 remaining errors

ERROR in src/ui/pages/Popup/index.tsx
./src/ui/pages/Popup/index.tsx 5:9-17
[tsl] ERROR in src/ui/pages/Popup/index.tsx(5,10)
      TS2724: '"react-router"' has no exported member named 'Redirect'. Did you mean 'redirect'?
 @ ./src/ui/popup.tsx 32:32-62

ERROR in src/background/identity-factory.ts
./src/background/identity-factory.ts 26:10-18
[tsl] ERROR in src/background/identity-factory.ts(26,11)
      TS2740: Type 'Identity' is missing the following properties from type 'ZkIdentity': _identityTrapdoor, _identityNullifier, _secret, getSecret, and 3 more.
 @ ./src/background/zk-kepeer.ts 18:43-72
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/services/protocols/rln.ts
./src/background/services/protocols/rln.ts 42:20-38
[tsl] ERROR in src/background/services/protocols/rln.ts(42,21)
      TS2554: Expected 4 arguments, but got 5.
 @ ./src/background/zk-kepeer.ts 16:30-65
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/services/protocols/semaphore.ts
./src/background/services/protocols/semaphore.ts 7:4-17
[tsl] ERROR in src/background/services/protocols/semaphore.ts(7,5)
      TS2305: Module '"@zk-kit/protocols"' has no exported member 'genSignalHash'.
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/services/protocols/semaphore.ts
./src/background/services/protocols/semaphore.ts 51:20-38
[tsl] ERROR in src/background/services/protocols/semaphore.ts(51,21)
      TS2554: Expected 4 arguments, but got 5.
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/services/protocols/semaphore.ts
./src/background/services/protocols/semaphore.ts 65:88-97
[tsl] ERROR in src/background/services/protocols/semaphore.ts(65,89)
      TS2345: Argument of type 'SemaphoreFullProof' is not assignable to parameter of type 'Proof'.
  Type 'SemaphoreFullProof' is missing the following properties from type 'Proof': pi_a, pi_b, pi_c, protocol, curve
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

6 errors have detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.
0xisk commented 1 year ago

Resolving this error in this commit: https://github.com/privacy-scaling-explorations/crypt-keeper-extension/commit/b7f37d5e6265e39ae0ed9d23bc72fd040eb4abe8

Ref: https://gist.github.com/mjackson/b5748add2795ce7448a366ae8f8ae3bb#not-server-rendering

      TS2724: '"react-router"' has no exported member named 'Redirect'. Did you mean 'redirect'?

5 remaining errors

ERROR in src/background/identity-factory.ts
./src/background/identity-factory.ts 26:10-18
[tsl] ERROR in src/background/identity-factory.ts(26,11)
      TS2740: Type 'Identity' is missing the following properties from type 'ZkIdentity': _identityTrapdoor, _identityNullifier, _secret, getSecret, and 3 more.
 @ ./src/background/zk-kepeer.ts 18:43-72
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/services/protocols/rln.ts
./src/background/services/protocols/rln.ts 42:20-38
[tsl] ERROR in src/background/services/protocols/rln.ts(42,21)
      TS2554: Expected 4 arguments, but got 5.
 @ ./src/background/zk-kepeer.ts 16:30-65
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/services/protocols/semaphore.ts
./src/background/services/protocols/semaphore.ts 7:4-17
[tsl] ERROR in src/background/services/protocols/semaphore.ts(7,5)
      TS2305: Module '"@zk-kit/protocols"' has no exported member 'genSignalHash'.
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/services/protocols/semaphore.ts
./src/background/services/protocols/semaphore.ts 51:20-38
[tsl] ERROR in src/background/services/protocols/semaphore.ts(51,21)
      TS2554: Expected 4 arguments, but got 5.
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

ERROR in src/background/services/protocols/semaphore.ts
./src/background/services/protocols/semaphore.ts 65:88-97
[tsl] ERROR in src/background/services/protocols/semaphore.ts(65,89)
      TS2345: Argument of type 'SemaphoreFullProof' is not assignable to parameter of type 'Proof'.
  Type 'SemaphoreFullProof' is missing the following properties from type 'Proof': pi_a, pi_b, pi_c, protocol, curve
 @ ./src/background/zk-kepeer.ts 15:36-77
 @ ./src/background/backgroundPage.ts 9:36-58

5 errors have detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.
0xisk commented 1 year ago

Resolving those 4 errors in this commit: https://github.com/privacy-scaling-explorations/crypt-keeper-extension/commit/afe4b86c4fe00911651ee0f17ac5acbd2b2b7258

After updating @zk-kit/protocols to ^1.11.1

ERROR in src/background/services/protocols/semaphore.ts(65,89)
      TS2345: Argument of type 'SemaphoreFullProof' is not assignable to parameter of type 'Proof'.
  Type 'SemaphoreFullProof' is missing the following properties from type 'Proof': pi_a, pi_b, pi_c, protocol, curve

ERROR in src/background/services/protocols/semaphore.ts(51,21)
      TS2554: Expected 4 arguments, but got 5.

ERROR in src/background/services/protocols/semaphore.ts(7,5)
      TS2305: Module '"@zk-kit/protocols"' has no exported member 'genSignalHash'.

ERROR in src/background/services/protocols/rln.ts(42,21)
      TS2554: Expected 4 arguments, but got 5.

1 remaining error

ERROR in src/background/identity-factory.ts
./src/background/identity-factory.ts 26:10-18
[tsl] ERROR in src/background/identity-factory.ts(26,11)
      TS2740: Type 'Identity' is missing the following properties from type 'ZkIdentity': _identityTrapdoor, _identityNullifier, _secret, getSecret, and 3 more.
ts-loader-default_e3b0c44298fc1c14
 @ ./src/background/zk-kepeer.ts 18:43-72
 @ ./src/background/backgroundPage.ts 9:36-58

webpack 5.75.0 compiled with 1 error in 12556 ms
0xisk commented 1 year ago

All packages were updated successfully.