You might encounter this error when you try to execute the widget code offline during testing. Please try running the code online in order to avoid this error.