【发布时间】:2022-01-17 07:14:41
【问题描述】:
我在将 next.js 应用程序部署到 Heroku 时遇到问题。建设者说:
remote: postcss-resolve-url: postcss.plugin was deprecated. Migration guide:
remote: https://evilmartians.com/chronicles/postcss-8-plugin-migration
remote: Failed to compile.
remote:
remote: ./pages/index.js
remote: Module not found: Can't resolve '../styles/Constructionpage.module.scss' in '/tmp/build_642a3d7a/pages'
remote:
这是我的 /pages/index.js 文件导入:
import style from "../styles/Constructionpage.module.scss";
import Head from "next/head";
结构如下:
pages
-index.js
styles
-Constructionpage.module.scss
但在本地一切正常,没有任何错误/警告。 有谁知道为什么会这样?谢谢!
【问题讨论】:
标签: heroku sass deployment next.js