Open morkeleb opened 3 years ago
Hi,
I'm facing the same issue, can't seem to find where the problem is coming from...
Same problem here
Update: It's webpack that is renaming the classnames.
It looks like I could add keep_classnames to the minimizer function webpack is running. I'll post updates if I get it working
@morkeleb
FYI, the recommended solution here is to specify the tableName
property in the @Table
decorator. There's a section in the readme that discusses this, but it's kind of hidden near the bottom.
See: https://github.com/RobinBuschmann/sequelize-typescript#minification
Issue
I'm testing out sequelize-typescript for data access on a brand new next.js project. However I can't get the type resolution to work at all. I suspect it has something todo with the reflection, so I've modified a bit of the error message to contain more information.
Its probably some mistake I did, but I'm now at a loss of what to do next.
The error I'm getting is
The model class is defined as follows
Here is my sequelize setup:
my tsconfig.json
Please note I've extended the error message to include more values of the variables in the executing code.
Versions
Here are my dependencies