ant-design-pro-blazor
ant-design-pro-blazor copied to clipboard
Create a new project and get compile error "The name 'antv' does not exist in the current context"
I use the following commnad to create the project.
dotnet new antdesign -o MyAntDesignApp --host server --full
But when I run it, it will get below error.
Error (active) CS0103 The name 'antv' does not exist in the current context D:\source\study\antdesign\MyAntDesignApp\Pages\_Host.cshtml 25
It seems caused by this line in _Host.cshtml.
<script type="text/javascript" src="https://unpkg.com/@antv/g2plot@latest/dist/g2plot.min.js">
Need to change it from "@antv" to be "@@antv".
<script type="text/javascript" src="https://unpkg.com/@@antv/g2plot@latest/dist/g2plot.min.js"></script>