TypeError: Path must be a string. Received [ xxx ]

find package.json, and change the "main" field to string type.