在 windows 打包直接报错信息
Failed to compile.
./node_modules/@antv/data-set/build/data-set.js
Module build failed: ReferenceError: Unknown plugin "transform-remove-strict-mode" specified in "d:\\work\\..\\node_modules\\@antv\\data-set\\.babelrc" at 0, attempted to resolve relative to "d:\\work\\..\\node_modules\\@antv\\data-set"
备注: 在 mac 上打包正常
github 上的讨论帖
解决方案
版本回退至:0.8.0
"devDependencies": {
"@antv/data-set": "0.8.0",
}
本文解决在Windows环境下使用AntV数据集模块打包时遇到的编译失败问题,具体表现为未知插件'transform-remove-strict-mode'错误。通过回退至0.8.0版本成功解决该问题。
3187

被折叠的 条评论
为什么被折叠?



