Skip to content

Feathers v4 upgrade declarations file missing #1738

Description

@ismail-codinglab

What is the problem?

When I try to upgrade feathers v3 to feathers v4 it creates a new file named authentication.ts
in this file it requires the following file:

import { Application } from '../../declarations';

Which does not exist
So i tried a clean install of feathers v4
In there, it has a declarations.d.ts file, which is missing from the v3 to v4 application.

How did I try to solve it?

I copied declarations.d.ts file from an new feathers v4 application to an old feathers v3 moved to v4 application.
I changed

import { Application } from '../../declarations';

Into

import { Application } from './declarations';

declare module './declarations' {
  interface ServiceTypes {
    'authentication': AuthenticationService & ServiceAddons<any>;
  }
}

What happends?

image

Why does it happen

This is the compiled authentication.js file, on line 2 it already writes to exports while line 13 also tries that
copyshot

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions