【问题标题】:next.js error while trying to run code on liveserver尝试在 liveserver 上运行代码时出现 next.js 错误
【发布时间】:2022-01-18 05:42:28
【问题描述】:

我收到此错误:

Failed to compile
./utils/styles.js
Error: failed to process internal error: entered unreachable code: assign property in object literal is invalid
This error occurred during the build process and can only be dismissed by fixing the error.

尝试通过终端在本地主机上打开我的代码时。

【问题讨论】:

  • 请澄清您的具体问题或提供更多详细信息以准确突出您的需求。正如目前所写的那样,很难准确地说出你在问什么。

标签: npm terminal next.js localhost


【解决方案1】:

是的,有同样的错误,您可能在对象中使用了= 而不是:。例子; const myObj = {name = "Usman"} 而不是 const myObj = {name : 'Usman}

【讨论】:

    猜你喜欢
    • 2014-05-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-01-26
    • 2021-12-24
    • 1970-01-01
    • 2021-03-12
    • 1970-01-01
    相关资源
    最近更新 更多