如何加载额外的loader?

问题描述 投票:0回答:1

我正在将我的 Angular 应用程序从 Angular 7 升级到 Angular 15。使用 SweetAlert,出现以下错误。

./node_modules/sweetalert2/src/sweetalert2.scss?ngGlobalStyle:1:0 - 错误:模块解析失败:意外的标记 (1:0) 文件是用这些加载器处理的:

  • ./node_modules/resolve-url-loader/index.js
  • ./node_modules/sass-loader/dist/cjs.js 您可能需要一个额外的加载器来处理这些加载器的结果。

.swal2-popup.swal2-toast { |框大小:边框框; |网格列:1/4!重要;

如何更改文件加载器?这个特定问题的可能原因和解决方案是什么?

我尝试安装模块来修改 webpack.config.js 文件作为预期的解决方案,但没有成功。

angular sweetalert2
1个回答
-1
投票

@Iftikhan 你能解决这个问题吗?

© www.soinside.com 2019 - 2024. All rights reserved.