How to check for #1 being either `d` or `h` with latex3? Then do one of the following, as described in the documentation: In the nearest parent package.json file, add the top-level "type" field with a value of "module". I couldn't get rid of this SyntaxError: Cannot use import statement outside a module error no matter what I have tried and it got so frustrating. It's not them. I freaking prevented myself from committing my jest.config.js file by including all *.js in my .gitignore. For me it has cropped up when upgrading to the new react-native-modal-datetime-picker module that has an import and export default in it's index.js file and is isolated to our jest unit tests. I had Vitest working immediately after installation. Right now, the only way to do that is to either create a HTTP content-type on the server of "module" for any file with a .mjs extension and change your file extension on module JavaScript files to ".mjs", or have an HTML script tag with type="module" added to any external