Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

497
Views
Incrustación de la biblioteca js en el aumento del proyecto angular: módulo no encontrado: error: no se puede resolver

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:

ingrese la descripción de la imagen aquí

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?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!