angular - ngx-swiper-wrapper 是否适用于 Angular 7?
问题描述
我正在从 Angular 5 迁移到 Angular 7。
我的项目包含ngx-swiper-wrapper https://github.com/zefoy/ngx-swiper-wrapper]
使用 Angular 7运行ng build --prod
,报告错误
错误模块构建失败(来自 ./node_modules/sass-loader/lib/loader.js):
导入{$,addClass,removeClass,hasClass,toggleClass,attr,removeAttr,data,transform,transition as transition$1,on,off,trigger,transitionEnd as transitionEnd$1,outerWidth,outerHeight,offset,css,each,html,text, is, index, eq, append, prepend, next, nextAll, prev, prevAll, parent, parents, nearest, find, children, remove, add, styles } from 'dom7/dist/dom7.modular'; ^ "import {": 预期 "}" 之后的无效 CSS,在 /home/victor/src/sabre/sabre-desktop/node_modules/swiper/dist/js/swiper.esm.bundle 中为 "$, addClass, remove"。 js(第 13 行,第 9 列)
我该如何解决这种情况?
解决方案
推荐阅读
- wordpress - 在 wordpress 中显示特定 uid 的多个条目
- opengl - 以 unicode 保存着色器文件时出现未定义的令牌错误
- python - iPython:print()函数抑制直接变量输出
- python-3.x - 用 pytest 测试 flask_wtf/wtforms
- javascript - 我的 todo 应用程序上的“完成”按钮的点击事件有问题
- javascript - 为什么即使条件为真,if 循环中的代码也没有执行?
- javascript - 通过单击上一个/下一个按钮更改图像
- javascript - Fetch JS 检索错误响应
- python - h5py 分配给数据集我的多维索引
- php - 从 SVN 服务器签出代码时出错