You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
If the /Users/loren/Sites/resortsinteractive/resorts-interactive.com/server/routes/api/emails/index.mjs file has a default export that is an anonymous function, you get TypeError: Cannot read property 'name' of null
export default function email(server) {
console.log('test')
}
Arrow functions are fine:
export default server => {
console.log('test')
}
Here's the stack from the caught error:
at module.exports.R.inited.R.module.errorCaptureStackTrace (/Users/loren/Sites/resortsinteractive/resorts-interactive.com/node_modules/esm/esm.js:1:42843)
at Sl.d.hint (/Users/loren/Sites/resortsinteractive/resorts-interactive.com/node_modules/esm/esm.js:1:199978)
at Sl (/Users/loren/Sites/resortsinteractive/resorts-interactive.com/node_modules/esm/esm.js:1:199999)
at Module.g (/Users/loren/Sites/resortsinteractive/resorts-interactive.com/node_modules/esm/esm.js:1:210375)
at Module.u._compile (/Users/loren/Sites/resortsinteractive/resorts-interactive.com/node_modules/esm/esm.js:1:62993)
at Object.u (/Users/loren/Sites/resortsinteractive/resorts-interactive.com/node_modules/esm/esm.js:1:210807)
at Object.l (/Users/loren/Sites/resortsinteractive/resorts-interactive.com/node_modules/esm/esm.js:1:209966)
at Object.<anonymous> (/Users/loren/Sites/resortsinteractive/resorts-interactive.com/node_modules/esm/esm.js:1:207620)
at /Users/loren/Sites/resortsinteractive/resorts-interactive.com/node_modules/esm/esm.js:1:69101
at Yi.b (/Users/loren/Sites/resortsinteractive/resorts-interactive.com/node_modules/esm/esm.js:1:69136)```
The text was updated successfully, but these errors were encountered:
Version: 3.0.41
This looks like it's related, or the same issue as #434
When doing a dynamic import like this:
If the
/Users/loren/Sites/resortsinteractive/resorts-interactive.com/server/routes/api/emails/index.mjs
file has a default export that is an anonymous function, you getTypeError: Cannot read property 'name' of null
Anonymous functions have the issue:
Named functions are fine:
Arrow functions are fine:
Here's the stack from the caught error:
The text was updated successfully, but these errors were encountered: