Error when importing files

Hello everyone.
When I import some jpg files, there is the message “call: argument fn is undefined”. what may that mean?
Thank you.

I see now that this happens when the file was already used in the project, then deleted, and then added again. Is there a way to avoid this?

This is definitely a bug, thanks for the report!