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

Type 'symbol' cannot be used as an index type #9498

Closed
lomby92 opened this issue Jun 1, 2018 · 2 comments
Closed

Type 'symbol' cannot be used as an index type #9498

lomby92 opened this issue Jun 1, 2018 · 2 comments
Labels
dependency For issues and PRs. Things that are related to one or more dependencies.

Comments

@lomby92
Copy link

lomby92 commented Jun 1, 2018

I have a TypeScript project where package.json has "typescript": "^2.7.2" dependence.
After release 2.9 of TypeScript i have an error on compile:

Type 'symbol' cannot be used as an index type.
143 query.where[sequelize.Op.and].push({ userId: req.query.userId });

Is this an error of Sequelize?

Dialect: postgres
Dialect version: ???
Database version: 9.6
Sequelize version: 4.37.10

@Carrotzpc
Copy link

There are two issues of typeScript may help you:

microsoft/TypeScript#24587
microsoft/TypeScript#1863

I downgraded the version of typeScript to 2.8.

@sushantdhiman sushantdhiman added the dependency For issues and PRs. Things that are related to one or more dependencies. label Jul 3, 2018
@stale
Copy link

stale bot commented Oct 1, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is still an issue, just leave a comment 🙂

@stale stale bot added the stale label Oct 1, 2018
@stale stale bot closed this as completed Oct 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependency For issues and PRs. Things that are related to one or more dependencies.
Projects
None yet
Development

No branches or pull requests

3 participants