[Solved] Uncaught SyntaxError: The requested module does not provide an export named

Uncaught SyntaxError: The requested module does not provide an export named

Original code:

Error report:

Solution: remove braces

Explanation:

When using export default, the corresponding import statement does not need to use braces
when export default is not used, the corresponding import statement needs to use braces
the export default command is used to specify the default output of the module. Obviously, a module can only have one default output, so the export default command can only be used once. Therefore, the Import command does not need to be followed by parentheses, because it can only correspond to the export default comman.

Read More: