Skip to content
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

sequelize Optional type throws a parsing error #1622

Open
joshpersaud opened this issue Dec 3, 2024 · 4 comments
Open

sequelize Optional type throws a parsing error #1622

joshpersaud opened this issue Dec 3, 2024 · 4 comments

Comments

@joshpersaud
Copy link

Encore doesn't seem to be able to parse the type Optional in the sequelize package. Models created by sequelize-auto often use this type.

The Object type looks like this:
export type Optional<T,K> = Omit<T, K> & Partial<Pick<T, K>>

❌ Building Encore application graph... Failed: parse error
  ⠚ Analyzing service topology... 
error: object not found: Optional
 --> [my-file-path]:2:28
  |
2 | import { DataTypes, Model, Optional } from 'sequelize'

Posted this in the discord but posting here for continuity.

@eandre
Copy link
Member

eandre commented Dec 3, 2024

@joshpersaud
Copy link
Author

@eandre
Copy link
Member

eandre commented Dec 3, 2024

Thanks, that works :) will have a look at fixing this.

@joshpersaud
Copy link
Author

You're amazing, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants