当我构建我的角11应用程序时,我得到了这个错误:
An unhandled exception occurred: processor is not a function
在进一步挖掘日志之后,这就是问题所在:
[error] TypeError: processor is not a function
at cssnanoPlugin (<project_path>/node_modules/@angular-devkit/build-angular/node_modules/cssnano/dist/index.js:129:32)
有人能帮我吗?
虽然升级从角5到角7,我得到了很少的错误,如地图和forkJoin是不推荐的。但是这些错误已经解决了。运行ng服务时仍然有一个错误。
ERROR in ./node_modules/source-map-support/source-map-support.js
Module not found: Error: Can't resolve 'path' in 'D:\project\node_modules\source-map-support'
有谁能帮忙解决这个错误吗?无法在下面的package.json中找出依赖于此的包
Package.json如
我试图让我的Firebase数据库连接到我的角2应用程序,这是我在过去做了几次,没有任何问题。因为某种原因,我得到了这个错误
Error: Can't resolve all parameters for AppService: (?).
at Error (native)
at syntaxError (http://localhost:3000/node_modules/@angular/compiler/bundles/compiler.umd.js:1513:34)
at CompileMetadataResolver._getD
因此,我试图将ImmutableJs导入到我的角2项目中,我正在使用这种systemjs配置。
(function(global) {
// map tells the System loader where to look for things
var map = {
'src/client': 'src/client', // 'dist',
'@angular': 'node_modules/@angular',
当使用tsc编译器选项"declaration": true时,我得到以下错误:
error TS4019: Implements clause of exported class 'MyClass' has or is using private name 'angular'.
使用"declaration": false时,我不会收到错误。
使用TypeScript版本: 2.0.3
示例代码
MyClass.ts
/// <reference path="node_modules/@types/angular/
我最近开始尝试angularjs,当我将index.html和angular.min.js放在同一个目录中时,我的网站运行良好:
<!--at the end of the <body> of index.html-->
<script src="angular.min.js"></script>
但是,我已经在../node_modules/angular/angular.min.js中得到了这个脚本的副本
我想用这个脚本代替:
<script src="../node_modules/angular/angula
天冬板核心模板3.3.2
"ng服务“发出此输出(如下)
补充资料:
错误是由类型不匹配版本生成的吗?
我的打字本应为2.6.1 (npm视图打字本)
我试过: npm安装类型记录@2.4.0
还有另一个问题吗?
服务输出
@angular/compiler-cli@4.4.6 requires typescript@'>=2.1.0 <2.4.0' but 2.4.0 was found instead.
Using this version can result in undefined behaviour and difficu
我在一个es6-module-loader项目中使用了这个Angular 2,它非常适合在web浏览器中实时加载TypeScript模块。现在,我正在将这个项目升级到Angular 6,但是这里没有满足加载模块的imports的依赖关系。例如:
declare var SystemLoader:any;
export class DemoClass {
constructor() {
var source = "export class Foo { " +
"constructor() { console.log('Created the
我在Angular2启动项目的System.Config.JS中看到了一个例子,它如下所示:
(function (global) {
System.config({
paths: {
// paths serve as alias
'npm:': 'node_modules/'
},
// map tells the System loader where to look for things
map: {
// our app is within the app folder
我需要实现adal以针对Microsoft Microsoft Azure AD进行身份验证。我使用的是angular2命令行界面和。
问题是,当我将AdalService添加到提供程序时,会出现以下错误:
Uncaught Error: Cannot find module "adal"
at webpackMissingModule (adal.service.js:20)
at Object.<anonymous> (adal.service.js:20)
at __webpack_require__ (bootstrap dd353fe…:52)
at Ob
我正在尝试将一个外部模块(我编写的)加载到一个主应用程序中,我有一些错误,但首先我想问您,我是否必须首先将外部模块构建到/dist中,还是必须使用源文件?
主程序和外部应用程序/模块都是用角5编写的。
错误:
ERROR in Error: No NgModule metadata found for 'AppModule'.
at NgModuleResolver.resolve (/Users/me/Dev/Work/mobile-shop-frontend/node_modules/@angular/compiler/bundles/compiler.umd.js