Skip to content

feat(ory): init

feat(ory): init #6

GitHub Actions / Release failed Jan 21, 2025 in 0s

Errors 1

Found 1 errors

Annotations

Check failure on line 1 in packages/react-kratos/package.json

See this annotation in the file changed.

@github-actions github-actions / Release

Error release workspace @atls/react-kratos

Exit code 1
Raw output
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                                                                              │
│  src/hooks/use-value.hook.ts:17:11                                                                                                                   TS2339  │
│                                                                                                                                                              │
│  15 |                                                                                                                                                        │
│  16 |   useEffect(() => {                                                                                                                                    │
│> 17 |     values.on(name, setValue)                                                                                                                          │
│     |           ^                                                                                                                                            │
│  18 |                                                                                                                                                        │
│  19 |     return (): void => {                                                                                                                               │
│  20 |       values.off(name, setValue)                                                                                                                       │
│                                                                                                                                                              │
│  Property 'on' does not exist on type 'ValuesStore'.                                                                                                         │
│                                                                                                                                                              │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                                                                              │
│  src/hooks/use-value.hook.ts:20:13                                                                                                                   TS2339  │
│                                                                                                                                                              │
│  18 |                                                                                                                                                        │
│  19 |     return (): void => {                                                                                                                               │
│> 20 |       values.off(name, setValue)                                                                                                                       │
│     |             ^                                                                                                                                          │
│  21 |     }                                                                                                                                                  │
│  22 |   }, [values, name])                                                                                                                                   │
│  23 |                                                                                                                                                        │
│                                                                                                                                                              │
│  Property 'off' does not exist on type 'ValuesStore'.                                                                                                        │
│                                                                                                                                                              │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                                                                              │
│  src/providers/values.store.ts:6:43                                                                                                                  TS2307  │
│                                                                                                                                                              │
│  4 | import type { Body }                  from './submit.context'                                                                                           │
│  5 |                                                                                                                                                         │
│> 6 | import { EventEmitter }               from 'events'                                                                                                     │
│    |                                           ^                                                                                                             │
│  7 |                                                                                                                                                         │
│  8 | export class ValuesStore extends EventEmitter {                                                                                                         │
│  9 |   #values: Body = {} as Body                                                                                                                            │
│                                                                                                                                                              │
│  Cannot find module 'events' or its corresponding type declarations.                                                                                         │
│                                                                                                                                                              │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                                                                              │
│  src/providers/values.store.ts:14:9                                                                                                                  TS2339  │
│                                                                                                                                                              │
│  12 |     super()                                                                                                                                            │
│  13 |                                                                                                                                                        │
│> 14 |     this.setMaxListeners(50)                                                                                                                           │
│     |         ^                                                                                                                                              │
│  15 |   }                                                                                                                                                    │
│  16 |                                                                                                                                                        │
│  17 |   getValue(name: keyof Body): any {                                                                                                                    │
│                                                                                                                                                              │
│  Property 'setMaxListeners' does not exist on type 'ValuesStore'.                                                                                            │
│                                                                                                                                                              │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                                                                              │
│  src/providers/values.store.ts:27:9                                                                                                                  TS2339  │
│                                                                                                                                                              │
│  25 |   setValue(name: keyof Body, value: Body[keyof Body]): void {                                                                                          │
│  26 |     this.#values[name] = value                                                                                                                         │
│> 27 |     this.emit(name, value)                                                                                                                             │
│     |         ^                                                                                                                                              │
│  28 |   }                                                                                                                                                    │
│  29 |                                                                                                                                                        │
│  30 |   setFromFlow(flow: Flow): void {                                                                                                                      │
│                                                                                                                                                              │
│  Property 'emit' does not exist on type 'ValuesStore'.                                                                                                       │
│                                                                                                                                                              │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                                                                              │
│  src/providers/values.store.ts:38:17                                                                                                                 TS2339  │
│                                                                                                                                                              │
│  36 |           if (!this.#values[name as keyof Body]) {                                                                                                     │
│  37 |             this.#values[name as keyof Body] = value                                                                                                   │
│> 38 |             this.emit(name, value)                                                                                                                     │
│     |                 ^                                                                                                                                      │
│  39 |           }                                                                                                                                            │
│  40 |         }                                                                                                                                              │
│  41 |       }                                                                                                                                                │
│                                                                                                                                                              │
│  Property 'emit' does not exist on type 'ValuesStore'.                                                                                                       │
│                                                                                                                                                              │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯