Closed hikinine closed 1 month ago
In the JavaScript, when typeof X
statement be declared to the non-existing instance, its return value is undefined
.
You'd just used older version of @nestia/core
which has not checked the existence of File
class by the typeof X
statement.
Just upgrade @nestia/core
to latest, then the problem be fixed.
I've already fixed my issue by upgrading node version from 18 to 20.16. Anyway, it took a while to figure out what was going on. Checking the "File" instance with typeof throws ReferenceError before checking for undefined and returning the properly message.
Just reporting in case anyone else has the same issue
https://github.com/samchon/nestia/blob/master/packages/core/src/decorators/TypedFormData.ts
ReferenceError https://developer.mozilla.org/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError