ci 上传时,出现以下错误提示信息,麻烦关注下:
Trace: `isModuleDeclaration` has been deprecated, please migrate to `isImportOrExportDeclaration`.
at isModuleDeclaration (xxxxxx\node_modules\@babel\types\lib\validators\generated\index.js:3939:11)
at gatherNodeParts (xxxxxx\node_modules\@babel\traverse\lib\scope\index.js:68:11)
at gatherNodeParts (xxxxxx\node_modules\@babel\traverse\lib\scope\index.js:88:7)
at Scope.generateUidBasedOnNode (xxxxxx\node_modules\@babel\traverse\lib\scope\index.js:428:5)
at Scope.generateUidIdentifierBasedOnNode (xxxxxx\node_modules\@babel\traverse\lib\scope\index.js:435:28)
at Scope.maybeGenerateMemoised (xxxxxx\node_modules\@babel\traverse\lib\scope\index.js:460:23)
at transform (xxxxxx\node_modules\@babel\plugin-proposal-optional-chaining\lib\index.js:134:19)
at PluginPass.OptionalCallExpression|OptionalMemberExpression (xxxxxx\node_modules\@babel\plugin-proposal-optional-chaining\lib\index.js:206:9)
at newFn (xxxxxx\node_modules\@babel\traverse\lib\visitors.js:177:21)
at NodePath._call (xxxxxx\node_modules\@babel\traverse\lib\path\context.js:53:20)
P.S. @babel/helper-module-imports 内部代码需要升级
参考资料:
https://github.com/ElementUI/babel-plugin-component/issues/67