You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All the shops where I've worked that use sequelize use sequelize.import() to define models; it allows you to create more modular definition files.
I had a really hard time upgrading model definitions from v3 to v4 because of all the generics at the top level (and admittedly my typescript inexperience) but eventually I got it all working. Those generics are mostly gone in v5 which is great, but I'm having trouble again.
The code below returns error TS4082: Default export of the module has or is using private name 'Bluebird'
I note the v5 example on the home page uses init(), and poking around it almost seems from stackoverflow and other issues here that import() is being deprecated???
I'm not stuck on import() and will try out init(), but I'm thinking there's quite a bit of code out there that's gonna break if it goes, and it should be mentioned in the migration notes and the docs.
And if it still works but I just can't figger it out, can you help a guy out and tell me what I'm doing wrong below?
All the shops where I've worked that use sequelize use sequelize.import() to define models; it allows you to create more modular definition files.
I had a really hard time upgrading model definitions from v3 to v4 because of all the generics at the top level (and admittedly my typescript inexperience) but eventually I got it all working. Those generics are mostly gone in v5 which is great, but I'm having trouble again.
The code below returns
error TS4082: Default export of the module has or is using private name 'Bluebird'
I note the v5 example on the home page uses init(), and poking around it almost seems from stackoverflow and other issues here that import() is being deprecated???
I'm not stuck on import() and will try out init(), but I'm thinking there's quite a bit of code out there that's gonna break if it goes, and it should be mentioned in the migration notes and the docs.
And if it still works but I just can't figger it out, can you help a guy out and tell me what I'm doing wrong below?
Thanks.
The text was updated successfully, but these errors were encountered: