I've reverted my code and it works, but the only difference here is the later one I've migrated some files into a new repository and have imported them as github dependencies in my package.json: "my-custom-thing": "git+https://blahblahblah""my-custom-thing": "git+https://blahblahblah"