question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot find name 'AlfrescoApiConfig'.

See original GitHub issue

Node Version: 8.1.3 Npm Version: 5.0.3 i am just followed this link https://github.com/Alfresco/alfresco-ng2-components/wiki/Angular-CLI .


ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (3,25): Cannot find name 'AlfrescoApiConfig'.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (3,45): Type annotation cannot appear on a constructor declaration.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (21,13): Cannot find name 'AlfrescoApiConfig'.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (23,15): Cannot find name 'Activiti'.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (24,11): Cannot find name 'Auth'.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (25,11): Cannot find name 'Core'.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (26,16): Cannot find name 'Discovery'.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (28,14): Cannot find name 'BpmAuthApi'.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (29,14): Cannot find name 'EcmAuthApi'.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (30,17): Cannot find name 'OauthApi'.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (32,15): Cannot find name 'Activiti'.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (33,11): Cannot find name 'Core'.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (34,16): Cannot find name 'Discovery'.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (37,12): Cannot find name 'NodesApi'.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (38,14): Cannot find name 'ContentApi'.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (42,16): Cannot find name 'EcmClient'.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (43,16): Cannot find name 'BpmClient'.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (44,19): Cannot find name 'SearchClient'.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (45,23): Cannot find name 'EcmPrivateClient'.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (149,9): All declarations of 'list' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (157,9): All declarations of 'pagination' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (158,9): All declarations of 'entries' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (168,9): All declarations of 'count' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (169,9): All declarations of 'hasMoreItems' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (170,9): All declarations of 'totalItems' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (171,9): All declarations of 'skipCount' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (172,9): All declarations of 'maxItems' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (250,9): All declarations of 'displayName' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (251,9): All declarations of 'id' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (255,9): All declarations of 'mimeType' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (256,9): All declarations of 'mimeTypeName' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (257,9): All declarations of 'sizeInBytes' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (258,9): All declarations of 'encoding' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (334,9): All declarations of 'briefSummary' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (335,9): All declarations of 'descriptionURL' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (337,9): All declarations of 'stackTrace' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (338,9): All declarations of 'statusCode' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (483,138): Cannot find name 'Primise'.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (743,9): All declarations of 'mimeType' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (744,9): All declarations of 'mimeTypeName' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (745,9): All declarations of 'sizeInBytes' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (746,9): All declarations of 'encoding' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (773,9): All declarations of 'briefSummary' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (774,9): All declarations of 'descriptionURL' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (776,9): All declarations of 'stackTrace' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (777,9): All declarations of 'statusCode' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (908,9): All declarations of 'list' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (912,9): Subsequent variable declarations must have the same type.  Variable 'entries' must be of type 'MinimalNodeEntity[]', but here has type 'NodeEntry[]'.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (912,9): All declarations of 'entries' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (913,9): All declarations of 'pagination' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (914,9): Subsequent variable declarations must have the same type.  Variable 'source' must be of type 'Source', but here has type 'Node'.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (918,9): All declarations of 'count' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (919,9): All declarations of 'hasMoreItems' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (920,9): All declarations of 'totalItems' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (921,9): All declarations of 'skipCount' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (922,9): All declarations of 'maxItems' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (1426,9): All declarations of 'displayName' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/node_modules/alfresco-js-api/index.d.ts (1427,9): All declarations of 'id' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/src/components/view/adf-card-view.component.ts (24,25): Cannot find module 'moment'.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (3,25): Cannot find name 'AlfrescoApiConfig'.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (3,45): Type annotation cannot appear on a constructor declaration.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (21,13): Cannot find name 'AlfrescoApiConfig'.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (23,15): Cannot find name 'Activiti'.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (24,11): Cannot find name 'Auth'.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (25,11): Cannot find name 'Core'.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (26,16): Cannot find name 'Discovery'.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (28,14): Cannot find name 'BpmAuthApi'.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (29,14): Cannot find name 'EcmAuthApi'.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (30,17): Cannot find name 'OauthApi'.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (32,15): Cannot find name 'Activiti'.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (33,11): Cannot find name 'Core'.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (34,16): Cannot find name 'Discovery'.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (37,12): Cannot find name 'NodesApi'.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (38,14): Cannot find name 'ContentApi'.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (42,16): Cannot find name 'EcmClient'.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (43,16): Cannot find name 'BpmClient'.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (44,19): Cannot find name 'SearchClient'.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (45,23): Cannot find name 'EcmPrivateClient'.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (149,9): All declarations of 'list' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (157,9): All declarations of 'pagination' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (158,9): All declarations of 'entries' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (168,9): All declarations of 'count' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (169,9): All declarations of 'hasMoreItems' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (170,9): All declarations of 'totalItems' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (171,9): All declarations of 'skipCount' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (172,9): All declarations of 'maxItems' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (250,9): All declarations of 'displayName' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (251,9): All declarations of 'id' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (255,9): All declarations of 'mimeType' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (256,9): All declarations of 'mimeTypeName' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (257,9): All declarations of 'sizeInBytes' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (258,9): All declarations of 'encoding' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (334,9): All declarations of 'briefSummary' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (335,9): All declarations of 'descriptionURL' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (337,9): All declarations of 'stackTrace' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (338,9): All declarations of 'statusCode' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (483,138): Cannot find name 'Primise'.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (743,9): All declarations of 'mimeType' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (744,9): All declarations of 'mimeTypeName' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (745,9): All declarations of 'sizeInBytes' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (746,9): All declarations of 'encoding' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (773,9): All declarations of 'briefSummary' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (774,9): All declarations of 'descriptionURL' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (776,9): All declarations of 'stackTrace' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (777,9): All declarations of 'statusCode' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (908,9): All declarations of 'list' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (912,9): Subsequent variable declarations must have the same type.  Variable 'entries' must be of type 'MinimalNodeEntity[]', but here has type 'NodeEntry[]'.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (912,9): All declarations of 'entries' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (913,9): All declarations of 'pagination' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (914,9): Subsequent variable declarations must have the same type.  Variable 'source' must be of type 'Source', but here has type 'Node'.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (918,9): All declarations of 'count' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (919,9): All declarations of 'hasMoreItems' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (920,9): All declarations of 'totalItems' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (921,9): All declarations of 'skipCount' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (922,9): All declarations of 'maxItems' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (1426,9): All declarations of 'displayName' must have identical modifiers.

ERROR in /home/dhrn/Angular/pagination/node_modules/alfresco-js-api/index.d.ts (1427,9): All declarations of 'id' must have identical modifiers.

ERROR in Error encountered resolving symbol values statically. Calling function 'CoreModule', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol AppModule in /home/dhrn/Angular/pagination/src/app/app.module.ts, resolving symbol AppModule in /home/dhrn/Angular/pagination/src/app/app.module.ts

ERROR in ./~/ng2-alfresco-core/bundles/ng2-alfresco-core.js
Module not found: Error: Can't resolve 'moment' in '/home/dhrn/Angular/pagination/node_modules/ng2-alfresco-core/bundles'
 @ ./~/ng2-alfresco-core/bundles/ng2-alfresco-core.js 20:355-372
 @ ./src/app/app.module.ts
 @ ./src/main.ts
 @ multi webpack-dev-server/client?http://localhost:4200 ./src/main.ts
webpack: Failed to compile.

Help me to fix this issue

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
dhrncommented, Jul 6, 2017

Thanks bro . it’s running

0reactions
eromanocommented, Aug 1, 2017

@dhrn can we close it? it sound as your local problem

Read more comments on GitHub >

github_iconTop Results From Across the Web

ReST API Guide - Alfresco Docs
ReST API Guide. The Alfresco ReST API version 1.0 is a complete application interface that gives you access to all the features of...
Read more >
Cannot find class org.alfresco.web.config ... - Stack Overflow
It is hard to tell from the code, but it appears you are trying to do something with the web client from the...
Read more >
Alfresco/content-app - Gitter
Hello. I am trying to build an extension for ACA app. I get stuck at the step npm install my-extension . ... The...
Read more >
Alfresco/alfresco-js-api: This project provides a JavaScript ...
This project provides a JavaScript client API into the Alfresco REST API and ... hostBpm, (Optional value The Ip or Name of the...
Read more >
Alfresco – Removing JMX settings via the AttributeService ...
springframework.beans.factory.BeanCreationException: Error creating bean with name 'search.solrIndexCheckService' defined in URL [jar:file:/opt/ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found