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

189
Views
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 answers
Answer question

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 Report
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!