You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Angular中Shepherd.js v19.0.2导入Step的旧路径失效,求正确路径

正确导入Shepherd.js v19.0.2的Step类路径

在Shepherd.js v19.0.2版本中,库的内部目录结构与导出机制做了调整,导致原有的import Step from 'shepherd.js/src/types/step';导入路径不再生效。

正确的导入方式是直接从主包中导入Step类型:

import { Step } from 'shepherd.js';

该版本已将所有类型定义整合到主导出中,无需再深入内部src目录引用类型文件。

内容的提问来源于stack exchange,提问作者Nixon Darius

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.13 05:04:49