ant-design-pro-blazor icon indicating copy to clipboard operation
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"

Open ieei0214 opened this issue 1 year ago • 0 comments

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>

ieei0214 avatar Sep 04 '22 07:09 ieei0214