-
Notifications
You must be signed in to change notification settings - Fork 46
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
This module can only be referenced with ECMAScript imports/exports by turning on the 'allowSyntheticDefaultImports' flag and referencing its default export. #93
Comments
怎么解决? |
同问 |
import DataSet from '@antv/data-set';
const dv= new DataSet.DataView(); |
同问这个解决了吗,加了"esModuleInterop": true也没效果 |
quick fix, here is my tsconfig.json
should have your problem fixed. make sure you add moduleResolution/esModuleInterop/allowSyntheticDefaultImports under where your ES complier is. 试试上面这个配置方式,应该能修复你们的问题。要确保你moduleResolution/esModuleInterop/allowSyntheticDefaultImports放在ES编译器下才可以 |
|
macOS: 10.15.6
nodejs: 14.0.0
angular: 10.0.14
@antv/data-set: 0.11.5
tsconfig.json
The text was updated successfully, but these errors were encountered: