For me the issue was resolved by going into build phase under "{name} Extension (macOS)" there is a "Copy Bundle Resource", it contained all other files except "content.js" and "background.js" once I added them, the error went away.
enter image description here