Reputation: 801
After upgrading my Angular version to the latest I have the error:
Content and Map of this Source is not available (only size() is supported)
Any helps would be appreciated cause there is not a lot of information about this issue.
Upvotes: 5
Views: 3755
Reputation: 23
So, after long research into the issues on Github of both angular-cli and webpack projects, I came to conclusion that the cleanest solution to this is to remove your package-lock.json
file and .angular/ directory and run npm install
(or yarn) again to rebuild the package-lock
file, as pointed out by a angular developer in a Github issue. This way the problem will never happen again.
You can also follow Carlo Nyte comment in your question for a temporary solution.
Just to clarify, these were the steps that led me to the same error:
ng serve
;ng serve
again, without changing any file since step 1;only size() is supported
" error.I am answering after 2 years because I want to help people struggling with the same problem and this question was one of the first that appeared when searching this bug.
My theory is that this problem happens when developers with different OS in the same team build the package-lock
file in their machines with certain libraries in their projects. It's a very obscure bug that neither webpack of angular could find the exact cause.
Upvotes: 1