Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

194
Vistas
ngx-scroll-event installed, but cannot be found

I just updated my project from Angular 7 to 8 (using ng update and following the Angular update guide), and everything was fine. Then I proceeded to Angular 9 and the project suddenly couldn't find the ngx-scroll-event@2.0.2 package anymore. Now it's throwing the "module not found" error:

Cannot find module 'ngx-scroll-event' or its corresponding type declarations.ts(2307)

Thinking that it might really be a dependency error, I used a few commands to avoid some dependency tree problems, like:

npm uninstall ngx-scroll-event
npm install ngx-scroll-event@2.0.2
npm update
npm ci
npm rebuild
npm cache verify

Everything was successful, no error was thrown, the package is listed on package.json/package-lock.json AND its folder is present, built on /node_modules, but when I try to run the project with ng s, the error continues. What am I doing wrong?

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

I faced a similar issue after migrating my project to Angular 9. After inspecting the "ngx-scroll-event" inside the node_modules folder, I realized that the "ngx-scroll-event" folder contains another dist folder that contains the library files.

So I changed the import syntax from the 'ngx-scroll-event' to 'ngx-scroll-event/dist/ngx-scroll-event' and it worked just fine.

For example:

import {NgxScrollEvent} from 'ngx-scroll-event/dist/ngx-scroll-event';

There will be better solution for this issue, but atleast it works.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda