Angular 9: Value at position X in the NgModule.imports is not a reference
you might have used npm i and the editor might fail to generate the build correctly. Try restarting your editor. Restarting worked for me. I was using VSCode
you might have used npm i and the editor might fail to generate the build correctly. Try restarting your editor. Restarting worked for me. I was using VSCode
UPDATE ANGULAR 12 using the –configuration production option while building the library fixed my issue ng build –configuration production Original answer: using –prod option while building the library fixed my issue ng build yourLibraryName –prod