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?

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

What is the problem?
When I try to upgrade feathers v3 to feathers v4 it creates a new file named
authentication.tsin this file it requires the following file:
Which does not exist
So i tried a clean install of feathers v4
In there, it has a
declarations.d.tsfile, which is missing from the v3 to v4 application.How did I try to solve it?
I copied
declarations.d.tsfile from an new feathers v4 application to an old feathers v3 moved to v4 application.I changed
Into
What happends?
Why does it happen
This is the compiled authentication.js file, on line 2 it already writes to

exportswhile line 13 also tries that