【问题标题】:There is an issue with `node-fibers``node-fibers` 存在问题
【发布时间】:2022-11-11 09:24:46
【问题描述】:

我现在花了大部分时间尝试将我的 Nuxt 项目部署到 Vercel,但我不断收到此错误:

## There is an issue with `node-fibers` ##
`/vercel/path0/node_modules_dev/fibers/bin/linux-x64-93-glibc/fibers.node` is missing.
Try running this to fix the issue: /node16/bin/node /vercel/path0/node_modules_dev/fibers/build
Error: Cannot find module '/vercel/path0/node_modules_dev/fibers/bin/linux-x64-93-glibc/fibers'
Require stack:
- /vercel/path0/node_modules_dev/fibers/fibers.js
- /vercel/path0/nuxt.config.js

我是 SASS 的新手,这是我第一次部署一个配置了它的项目。我已经尝试过其他 Stackoverflow 帖子的建议,但它们似乎都不起作用。

我在这里做错了什么?有什么我可以尝试解决的吗?

【问题讨论】:

  • 不确定this answer 是否仍然相关,但您可能应该查看此处使用的 Node.js。另外,它在本地有效吗?你试过 Netlify 吗?
  • 谢谢@kissu,你拯救了我的一天!在您引用的帖子中使用该设置后,它起作用了!

标签: vue.js sass nuxt.js vercel


【解决方案1】:

此问题可能是由使用的 SASS 版本引起的。您可以查看我的answer here 以获取有关如何设置正确配置并能够将其托管在 Vercel 上的指南。

node-sass 有很多 bug 且速度很慢,但由于 Nuxt3 在 RC3 中,人们将能够使用 sass 包(与 Vite 或 Webpack5 一起使用)。

如果根本需要 SASS(PostCSS 到今天已经完成了相当多的工作)。

【讨论】:

    猜你喜欢
    • 2019-02-05
    • 2017-07-04
    • 2020-03-05
    • 2017-08-09
    • 2022-08-11
    • 2016-08-17
    • 1970-01-01
    • 1970-01-01
    • 2022-12-03
    相关资源
    最近更新 更多