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

Add tsconfig line for DataSourceVariableSupport #31

Closed
wants to merge 1 commit into from

Conversation

sarahzinger
Copy link
Member

@sarahzinger sarahzinger commented Aug 26, 2021

For reasons that are still a bit mysterious to me, when working on Template Variables for a new plugin we tried to reuse the QueryEditor for query template variables with DataSourceVariableSupport and we hit the following error:
TypeError: class constructors must be invoked with 'new'

This error seems to go away when we add this line to our tsconfig. 🤷‍♀️ What's particularly confusing to me is that I didn't see any tsconfig errors in yarn watch or yarn build. Maybe someone better with typescript/es6 can better explain what's going on here, but I think we should probably add this to our template.

@sarahzinger
Copy link
Member Author

Going through old prs and I don't really remember why I made this so just going to close it.

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

Successfully merging this pull request may close these issues.

None yet

1 participant