undefined:0: Error: Invalid module type was asserted