Angular No module factory available for dependency type: ContextElementDependency

Steps I took to fix this problem in case if someone encounters it:

  1. Package.json: remove webpack from DevDependencies
  2. rm -R node_modules (remove node_modules folder)
  3. npm i -g webpack
  4. npm i -g webpack-dev-server
  5. remove package-lock.json (if it’s there)
  6. npm i
  7. npm start

I still don’t completely understand the reasons why this happened.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)