try {
s_product = await product.save();
res.json(s_product);
} catch (err) {
console.error(err.message);
res.status(500).send("Server Error");
}
错误代码:
TypeError: func.apply is not a function
HTMLUnknownElement.callCallback
node_
模块/react-dom/cjs/react-dom.development.js:337
334 | window.event = windowEvent;
335 | }
336 |
> 337 | func.apply(context, funcArgs);
| ^ 338 | didError = false;
339 | } // Create a global error event handler. We use this to capture the value
340 | // that was thrown. It's possible that this error handler will fire more
任何帮助真的很感激。谢谢!
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句