Tengo el siguiente problema: estoy trabajando en un proyecto Angular donde necesito implementar un editor de diagramas de flujo para el que estoy usando esta biblioteca: https://github.com/jerosoler/Drawflow
junto con la definición de tipos: https://www.npmjs.com/package/@types/drawflow
Todo funciona bien siempre que ambos se importen de npm. Pero en realidad necesito cambiar un par de cosas en la biblioteca de flujo de dibujo y estaba tratando de agregar los scripts directamente a mi proyecto. Pero tan pronto como elimino el paquete npm para el flujo de dibujo, obtengo la siguiente excepción: ./src/app/pages/tree-editor-page/components/editor-presentation/editor-presentation.component.ts:1:0-56 - Error: Module not found: Error: Can't resolve 'src/app/drawflow/@types/drawflow' in 'C:\DEV\repos\Digilize\DMS\DMS-Frontend\src\app\pages\tree-editor-page\components\editor-presentation'
Archivos incluidos en el proyecto:
scripts definidos en angular.json:
"styles": [ "src/app/styles/styles.scss", "src/app/drawflow/js/dist/drawflow.min.css" ], "scripts": ["src/app/drawflow/js/dist/drawflow.min.js"]Componente con tipos de importación:
import { AfterViewInit, Component, ElementRef, OnInit, ViewChild } from '@angular/core'; import Drawflow from 'src/app/drawflow/@types/drawflow'; import { combineLatest, first, last } from 'rxjs'; import { DTNode, DTRelation } from 'src/app/interfaces/api/decision-tree-definition.interface'; import { DTStoreService } from 'src/app/services/store/dt-state.store'; @Component({ selector: 'app-editor-presentation', templateUrl: './editor-presentation.component.html', styleUrls: ['./editor-presentation.component.scss'] }) export class EditorPresentationComponent implements OnInit, AfterViewInit { private editor: Drawflow; ...Soy bastante nuevo en Angular y no sé qué estoy haciendo mal aquí. ¿Algunas ideas?