Can't built dependency using ACA-shared

cancel
Showing results for 
Search instead for 
Did you mean: 
LorderHyland
Partner

Can't built dependency using ACA-shared

Hello,

I started to built an extension using the version "version: 3.1.0", and when I trying to used the aca-shared to open a pdf file using the viewer, the import throught 

import { ViewNodeAction } from '@alfresco/aca-shared/store';

or 

import { PluginPreviewAction } from '@alfresco/aca-shared/store';

 I received in the console log an error like this

Compiling with Angular sources in Ivy partial compilation mode.

projects/aca-shared/store/src/states/app.state.ts:1:1 - error TS6059: 
File '/Users/Desktop/alfresco-content-app-poc/projects/aca-shared/store/src/states/app.state.ngtypecheck.ts'
is not under 'rootDir' '/Users/Desktop/alfresco-content-app-poc/projects/sourcesense-extension/src'.
'rootDir' is expected to contain all source files projects/aca-shared/store/src/actions/viewer.actions.ts:1:1 - error TS6059:
File '/Users/Desktop/alfresco-content-app-poc/projects/aca-shared/store/src/actions/viewer.actions.ngtypecheck.ts'
is not under 'rootDir' '/Users/Desktop/alfresco-content-app-poc/projects/sourcesense-extension/src'.
'rootDir' is expected to contain all source files. projects/sourcesense-extension/src/lib/components/whitepapers-datatable/whitepapers-datatable.component.ts:6:26 - error TS6059:
File '/Users/Desktop/alfresco-content-app-poc/projects/aca-shared/store/src/states/app.state.ts'
is not under 'rootDir' '/Users/Desktop/alfresco-content-app-poc/projects/sourcesense-extension/src'.
'rootDir' is expected to contain all source files. import { AppStore } from 'projects/aca-shared/store/src/states/app.state';                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ projects/sourcesense-extension/src/lib/components/whitepapers-datatable/whitepapers-datatable.component.ts:7:53 - error TS6059:
File '/Users/Desktop/alfresco-content-app-poc/projects/aca-shared/store/src/actions/viewer.actions.ts'
is not under 'rootDir' '/Users/Desktop/alfresco-content-app-poc/projects/sourcesense-extension/src'.
'rootDir' is expected to contain all source files. import { PluginPreviewAction, ViewNodeAction } from 'projects/aca-shared/store/src/actions/viewer.actions';

I follow the instructions of this link https://alfresco-content-app.netlify.app/#/features/file-viewer and this other link https://www.alfresco.com/abn/adf/docs/core/components/viewer.component/ , to get my results showing the pdf docs in the extension, but always is the same error, in this case I would like to know if there is an another way to look into this problem or perhaps some sort of advice how to use this library into my extension with this specific version.

Thank you