import {MyComponent} from '../components/xyz.js';
vs
import MyComponent from '../components/xyz.js';
The second one works while the first caused the error.
For anyone still wondering why this works - {MyComponent} imports the export 'MyComponent' from the file '../components/xyz.js' - The second imports the default export from '../components/xyz.js'.