草庐IT

build-dependencies

全部标签

Error: Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js)

一、出现问题:Error:Modulebuildfailed(from./node_modules/mini-css-extract-plugin/dist/loader.js):ModuleBuildError:Modulebuildfailed(from./node_modules/postcss-loader/src/index.js):Error:ENOENT:nosuchfileordirectory,#原因将static文件夹的css文件删除了#解决方案新建一个项目,在static文件夹中,复制customicons.css和customicons.ttf,最后粘贴到当前项目的st

dependency-injection - Flutter:(如何)我可以拥有一个每个都依赖 Provider 的小部件的 PageView 吗?

我正在尝试使用Providers设计我的应用程序和MobX"Stores",并且无法找到在可能包含在PageView中的小部件中使用Providers/Stores的正确方法。我有一个StatelessWidget“PlayerPage”,它显示来自“PlayerStore”的单个可观察“Player”对象的数据,该对象在PlayerPage内使用Provider.of提供。在我的应用程序的某些部分,一个PlayerPage就是全部,但在其他部分,几个PlayerPages包含在一个PageView中,其中提供了一个Players列表(来自“TeamStore”)。由于PageView

dependency-injection - Flutter:(如何)我可以拥有一个每个都依赖 Provider 的小部件的 PageView 吗?

我正在尝试使用Providers设计我的应用程序和MobX"Stores",并且无法找到在可能包含在PageView中的小部件中使用Providers/Stores的正确方法。我有一个StatelessWidget“PlayerPage”,它显示来自“PlayerStore”的单个可观察“Player”对象的数据,该对象在PlayerPage内使用Provider.of提供。在我的应用程序的某些部分,一个PlayerPage就是全部,但在其他部分,几个PlayerPages包含在一个PageView中,其中提供了一个Players列表(来自“TeamStore”)。由于PageView

flutter - 我的类什么时候需要 build() 方法?

我了解使用Flutter构建UI布局的一般方法。但是,我仍然不清楚在创建自己的类或UI小部件时需要.build()方法还是使用项目生成的默认值。我还没有找到明确的解释-即使在Flutter教程中也是如此。他们似乎都只是掩盖了“构建方法采用BuildContext”的方式,然后在没有进一步解释的情况下继续下一个主题。有没有人对构建方法以及何时需要或不需要它有一个简洁的解释?更具体地说:它实际上做了什么? 最佳答案 build()方法描述了此小部件所代表的用户界面部分。框架在许多不同的情况下调用这个方法:在调用initState之后。在

flutter - 我的类什么时候需要 build() 方法?

我了解使用Flutter构建UI布局的一般方法。但是,我仍然不清楚在创建自己的类或UI小部件时需要.build()方法还是使用项目生成的默认值。我还没有找到明确的解释-即使在Flutter教程中也是如此。他们似乎都只是掩盖了“构建方法采用BuildContext”的方式,然后在没有进一步解释的情况下继续下一个主题。有没有人对构建方法以及何时需要或不需要它有一个简洁的解释?更具体地说:它实际上做了什么? 最佳答案 build()方法描述了此小部件所代表的用户界面部分。框架在许多不同的情况下调用这个方法:在调用initState之后。在

error: Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft C++ Build Tools“

在window端的anaconda虚拟环境中,想要安装mmdet出现了这个问题,完整的错误如下所示:Buildingwheelsforcollectedpackages:pycocotoolsBuildingwheelforpycocotools(pyproject.toml)...errorerror:subprocess-exited-with-error×Buildingwheelforpycocotools(pyproject.toml)didnotrunsuccessfully.│exitcode:1╰─>[16linesofoutput]runningbdist_wheelrunn

android - Flutter FAILURE : Build failed with an exception. FormatException: Bad UTF-8 encoding 0xfd (at offset 52)

当我尝试在VsCode中运行我的flutter应用程序时。我遇到了这个错误。在我最近的应用程序中,一切正常。在这个应用程序中,我只完成了添加firebase连接。在flutterdoctor中有没有错误,也没有使用土耳其语字符。 最佳答案 已解决。这是因为我在程序文件中构建了flutter文件夹。你不应该那样做。 关于android-FlutterFAILURE:Buildfailedwithanexception.FormatException:BadUTF-8encoding0xfd

android - Flutter FAILURE : Build failed with an exception. FormatException: Bad UTF-8 encoding 0xfd (at offset 52)

当我尝试在VsCode中运行我的flutter应用程序时。我遇到了这个错误。在我最近的应用程序中,一切正常。在这个应用程序中,我只完成了添加firebase连接。在flutterdoctor中有没有错误,也没有使用土耳其语字符。 最佳答案 已解决。这是因为我在程序文件中构建了flutter文件夹。你不应该那样做。 关于android-FlutterFAILURE:Buildfailedwithanexception.FormatException:BadUTF-8encoding0xfd

dart - 具有 Ink.image 中图像的 Material 的 Flutter Grid 布局给出错误 "A build function returned null. The..."

我正在创建一个4x3的游戏板。该板应该由不同的图像组成。一开始我只是试图为所有片段加载相同的图像,但是我在应用程序中收到一条错误消息:"Abuildfunctionreturnednull.The..."@overrideWidgetbuild(BuildContextcontext){returnScaffold(appBar:newAppBar(title:newText("CatAttack"),),body:Column(mainAxisAlignment:MainAxisAlignment.start,crossAxisAlignment:CrossAxisAlignment

dart - 具有 Ink.image 中图像的 Material 的 Flutter Grid 布局给出错误 "A build function returned null. The..."

我正在创建一个4x3的游戏板。该板应该由不同的图像组成。一开始我只是试图为所有片段加载相同的图像,但是我在应用程序中收到一条错误消息:"Abuildfunctionreturnednull.The..."@overrideWidgetbuild(BuildContextcontext){returnScaffold(appBar:newAppBar(title:newText("CatAttack"),),body:Column(mainAxisAlignment:MainAxisAlignment.start,crossAxisAlignment:CrossAxisAlignment