-
-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to V3 of umzug does not appear to have compatible @types/umzug #603
Comments
The external typings should not be used with v3. Just remove the dependency. |
Just tried what you suggested: import { Migration, Umzug, UpDownMigrationsOptions } from 'umzug'; Building Node Server 3 import { Migration, Umzug, UpDownMigrationsOptions } from 'umzug'; server/db/dbMgmt/ormFactory.ts:3:28 - error TS2305: Module '"umzug"' has no exported member 'UpDownMigrationsOptions'. 3 import { Migration, Umzug, UpDownMigrationsOptions } from 'umzug'; server/services/db-admin.handlers.ts:5:10 - error TS2305: Module '"umzug"' has no exported member 'UpDownMigrationsOptions'. 5 import { UpDownMigrationsOptions } from 'umzug'; |
FYI - did use the npm ci option to ensure a rebuild of the node modules. Also tried several other V3 tags - V3.2.1 , V3.0.0 and the first beta... all give the same errors. |
See the error: |
Not sure I understand - A primary public function in umzug V2 & V3 - is the method "up" as defined below: How am I to create a strongly typed options object "UpDownMigrationsOptions" to pass to the publicly defined method "up" if it is not exported? Or is the intent of the library to remove the ability to supply options to the "up" method? |
(Edited - sorry, I originally submitted partial message)
No it isn't: Line 220 in 10ef28d
Unless I'm misunderstanding you? Where in V3 did you find that code? |
Apologies - in the upgrade process, the old typings were not removed - causing my confusion. |
Attempting to upgrade to V3.2.1
Sequelize Storage
Sequelize V6.28
Node 16.15.0
Typescript (VERY RELEVANT)
As stated in the title - The typings when trying to use this in Typescript are not up to date with the new release.
Get many errors pointing to e.g. "Migration" interface is not exported. UpDownMigrationsOptions also claims to be missing. While They are plain to see in the index file.
TIA
The text was updated successfully, but these errors were encountered: