Problem: Running into "ReferenceError: util$4 is not defined" error for Svelte apps. Here is a screenshot:
Figure 1: Error screenshot
Solution: Change the installed version of the
svelte package to something other than the existing version. The specific version to be installed doesn't really matter, experiment with some versions and that should solve this error. Here is the
npm command to install a different version:
npm install firstname.lastname@example.org // or npm install email@example.com
Thanks for reading this blog post!
If you have any questions or concerns please feel free to post a comment in this post and I will get back to you when I find the time.