小编bli*_*one的帖子

调用函数“ makeDecorator”,不支持函数调用

由@alexzuza解决。请在下面查看他的答案-大麻烦!基本上,从ng2-opd-popup文件夹中删除node_modules文件夹,然后编辑src/tsconfig.app.json使其与路径匹配。另请参阅注释,以获取rimraf设置的链接,以自动从npm install中排除node_modules。

我收到此错误:

ERROR中的ERROR遇到静态解析符号值的错误。调用函数“ makeDecorator”,不支持函数调用。考虑使用对导出函数的引用替换函数或lambda

此处找到的解决方案不起作用-im running angular v。4.3。

package.json:

PopupModule.forRoot(),
Run Code Online (Sandbox Code Playgroud)

tsconfig.json:

"paths": {
  "@angular/*": ["node_modules/@angular/*"]
},
Run Code Online (Sandbox Code Playgroud)

tsconfig.json:

{
  "compileOnSave": false,
  "compilerOptions": {
    "baseUrl": ".",
    "outDir": "./dist/out-tsc",
    "sourceMap": true,
    "declaration": false,
    "moduleResolution": "node",
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "target": "es5",
    "typeRoots": [
      "node_modules/@types"
    ],
    "paths": {
      "@angular/common": ["../node_modules/@angular/common"],
      "@angular/compiler": ["../node_modules/@angular/compiler"],
      "@angular/core": ["../node_modules/@angular/core"],
      "@angular/forms": ["../node_modules/@angular/forms"],
      "@angular/platform-browser": ["../node_modules/@angular/platform-browser"],
      "@angular/platform-browser-dynamic": ["../node_modules/@angular/platform-browser-dynamic"],
      "@angular/router": ["../node_modules/@angular/router"],
      "@angular/http": ["../node_modules/@angular/http"]
    },
    "lib": [
      "es2017",
      "dom"
    ]
  }
}
Run Code Online (Sandbox Code Playgroud)

tsconfig.app.json:

{
  "compileOnSave": false,
  "compilerOptions": {
    "baseUrl": ".", …
Run Code Online (Sandbox Code Playgroud)

json simplemodal npm typescript angular

3
推荐指数
1
解决办法
2380
查看次数

标签 统计

angular ×1

json ×1

npm ×1

simplemodal ×1

typescript ×1