问题:
在封装 el-breadcrumb 标签文件中,导入 'path-to-regexp' 插件,运行时警告:"export 'default' (imported as 'pathToRegexp') was not found in 'path-to-regexp'
原因:
导入路径的方式不正确。
解决方法:
正确的导入方法:
import * as pathToRegexp from 'path-to-regexp'
在封装 el-breadcrumb 标签文件中,导入 'path-to-regexp' 插件,运行时警告:"export 'default' (imported as 'pathToRegexp') was not found in 'path-to-regexp'
导入路径的方式不正确。
正确的导入方法:
import * as pathToRegexp from 'path-to-regexp'