Okay, I took away the “assert”. Unfortunately, I then got this error in the console.
Loading module from “http://127.0.0.1:3000/js/database/career.json” was blocked because of a disallowed MIME type (“application/json”). 127.0.0.1:3000
Loading failed for the module with source “http://127.0.0.1:3000/js/database/career.json”. 127.0.0.1:3000:11:1
Basically, as of now, you can only import .js files. So, either change your .json file to a .js file and add export default to the beginning, or use fetch as I showed above.