Stencil.js error when running the “build” script: TypeError: Cannot read property ‘toString’ of undefined at e.getRenderedHash [Solved]

If you are getting this error when running yarn build or npm run build that is probably because the versions of both the stencil core and stencil router are outdated. For solving this issue, just update both dependencies: Here are my current dependencies, just for reference: If you are interested in knowing more about this…