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
I opened a thread in Discord too, but putting it here for posterity.
I think the latest update (88d742b) is the root cause of a "Runtime.UserCodeSyntaxError" currently taking down my app.
Here's the exact error:
{
"errorType": "Runtime.UserCodeSyntaxError",
"errorMessage": "SyntaxError: Named export 'pathToRegexp' not found. The requested module 'path-to-regexp' is a CommonJS module, which may not support all module.exports as named exports.\nCommonJS modules can always be imported via the default export, for example using:\n\nimport pkg from 'path-to-regexp';\nconst { pathToRegexp } = pkg;\n",
"stack": [
"Runtime.UserCodeSyntaxError: SyntaxError: Named export 'pathToRegexp' not found. The requested module 'path-to-regexp' is a CommonJS module, which may not support all module.exports as named exports.",
"CommonJS modules can always be imported via the default export, for example using:",
"",
"import pkg from 'path-to-regexp';",
"const { pathToRegexp } = pkg;",
"",
" at _loadUserApp (file:///var/runtime/index.mjs:1084:17)",
" at async UserFunction.js.module.exports.load (file:///var/runtime/index.mjs:1119:21)",
" at async start (file:///var/runtime/index.mjs:1282:23)",
" at async file:///var/runtime/index.mjs:1288:1"
]
}
Let me know if there are any other helpful details I can provide to help you dive in.
The text was updated successfully, but these errors were encountered:
I opened a thread in Discord too, but putting it here for posterity.
I think the latest update (88d742b) is the root cause of a "Runtime.UserCodeSyntaxError" currently taking down my app.
Here's the exact error:
Let me know if there are any other helpful details I can provide to help you dive in.
The text was updated successfully, but these errors were encountered: