当我运行我的karma.config.js时,我会得到以下错误:
karma: D:\View\node_modules\karma-webpack-preprocessor\index.js:39:50 at nextPreprocessor (D:\View\node_modules\karma\lib\preprocessor.js:36:26) at D:\View\node_modules\karma\lib\preprocessor.js:122:9 at module.exports (D:\View\node_modules\isbinaryfile\index.js:28:
我已经花了大约10个小时来处理这个错误:
ERROR in ./src/main.ts
Module build failed: Error: Angular Compiler was detected but it was an instance of the wrong class.
This likely means you have several @ngtools/webpack packages installed. You can check this with `npm ls @ngtools/webpack`, and then remove the extra copies
我使用风格-装载机与webpack和反应框架。当我在终端上运行webpack时,我在import.js文件中获得了import.js,尽管我已经正确地指定了文件路径。
import '../css/style.css';
import React from 'react';
import ReactDOM from 'react-dom';
import jQuery from 'jquery';
import TopicsList from '../components/topic-list.jsx';
impo
在webpack的配置文件中,我将'node_modules‘和'src/js/libs’设置为文件夹,这是webpack应该查找模块的位置。‘’jquery form-styler‘是通过npm安装的,位于'node_modules’中,但根据第一个错误,webpack尝试在'src/js/modules‘中查找模块。为什么?
ERROR in ./src/js/modules/forms.js
Module not found: Error: Can't resolve 'jquery-form-styler' in '/Us
我试图让材料2与角4.4.6使用webpack在一个ASP.NET核心2网络应用程序。我没有错误,但目前没有样式设置,mat按钮属性对输出DOM没有任何影响。
我做了以下工作:
环境情况如下:
- Visual Studio (Professional) 2017 version 15.4.0
- ASP.NET Core 2 web application with Angular, from VS template
将NPM中的@角包更新为^4.4.6并恢复包
“@角/动画”:"^4.4.6“、”@角/普通“:"^4.4.6”、“@角/编译器”:"
我遇到了一个问题,因为似乎无法处理任何JSX代码。虽然我熟悉站点的高级代码是如何工作的,但我没有设置环境,这就是我在这种情况下得到的结果!
我试图反向工程的巴贝尔,webpack,中微子配置,以便我可以使用它在其他地方,所以我可以做一些包更新。
运行 npm run develop后终端中的错误
ℹ 「wds」: Project is running at http://localhost:5000/
ℹ 「wds」: webpack output is served from /
ℹ 「wds」: Content not from webpack is served from /Users/
我正在尝试在我的项目中使用agm来自动竞争表单字段。我只是使用命令npm install @agm/core安装,在app.module中,我在导入中添加了AgmCoreModule。我没有使用任何与agm相关的代码,保存了项目,运行了ng serve并得到了这个错误。
agm-core.js:4538 Uncaught TypeError: Object(...) is not a function
at agm-core.js:4538
at Module.../../node_modules/@agm/core/fesm5/agm-core.js (agm-core.js:4544)
a
因此,构建应用程序后端的时候到了。但是,当我把这个项目移到一个客户端文件夹中时,我犯了很多错误,就像youtube视频中提到的那样。我还创建了一个服务器文件夹,该文件夹目前是空的。我怎么才能解决这个问题?我真的不知道从哪里开始,或者悲伤地做些什么。
这是一个错误列表:
Compiled with problems:
ERROR in ./node_modules/body-parser/lib/read.js 20:11-26
Module not found: Error: Can't resolve 'zlib' in 'C:\Users\Serma\D