Problem with webpack import

This error means You might have an import statement in the middle of a file, and not a the top.