timalanfarrow / kratos-selfservice-ui-vue3-typescript

This repository contains a reference implementation for Ory Kratos' in Vue3 / Vite with Typescript. It implements all Ory Kratos flows (login, registration, account settings, account recovery, account verification).
33 stars 7 forks source link

npm build fails #4

Closed CreMindES closed 2 years ago

CreMindES commented 2 years ago

I've just cloned the repo and tried to build it with Docker. It failed with the following log: build-error.log.

error TS2345: Argument of type 'import("[repo]/node_modules/@ory/kratos-client/dist/api").UiNode' is not assignable to parameter of type 'import("[repo]/node_modules/@ory/client/dist/api").UiNode'.
  Types of property ''attributes'' are incompatible.
    Type 'import("[repo]/node_modules/@ory/kratos-client/dist/api").UiNodeAttributes' is not assignable to type 'import("[repo]/node_modules/@ory/client/dist/api").UiNodeAttributes'.
timalanfarrow commented 2 years ago

The build should succeed after pulling down from the latest. Looked to be a matter of the project using @ory/client for some type imports and @ory/kratos-client for others.