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

Cannot find name 'DataViewScopeIdentity' #28

Closed
banban opened this issue Sep 10, 2018 · 2 comments
Closed

Cannot find name 'DataViewScopeIdentity' #28

banban opened this issue Sep 10, 2018 · 2 comments

Comments

@banban
Copy link

banban commented Sep 10, 2018

Here is exceptions when I run pbiviz start:
info Building visual...
error TYPESCRIPT /src/sunburst.ts : (485,27) Cannot find name 'DataViewScopeIdentity'. method from exported c error TYPESCRIPT /src/sunburst.ts : (485,27) Parameter 'pathIdentity' of public
method from exported class has or is using private name 'DataViewScopeIdentity'. tity'.
error TYPESCRIPT /src/sunburst.ts : (502,45) Cannot find name 'DataViewScopeIdentity'.

As mentioned in change log v2.1.0:
The DataViewScopeIdentity interface is no longer supported, it was replaced with the data.DataRepetitionSelector interface.

Could you please replace in sunburst.ts file:
DataViewScopeIdentity with data.DataRepetitionSelector

@ignatvilesov
Copy link
Contributor

Please use npm start to start dev server. We include PBIVIZ into local dependencies to work with lots of visuals at the same time with reinstalling global pbiviz

@trusktr
Copy link

trusktr commented Dec 21, 2019

I've opened a request to fix issues like these in TypeScript by bringing declaration files to parity with language features. microsoft/TypeScript#35822

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

3 participants