进行腾讯云直播demo时发现错误
"export 'LibGenerateTestUserSig' was not found in '../api/trtc/lib-generate-test-usersig.min.js'
经参考博客提示,最终确定问题,原.babelrc内容:
{ "presets": [ ["env", { "modules": false, "targets": { "browsers": ["> 1%", "last 2 versions", "not ie <= 8"] } }], "stage-2" ], "plugins": ["transform-vue-jsx", "transform-runtime"] }
修改后能正常运行的.babelrc内容
{ "presets": [ ["env", { "modules": false, "targets": { "browsers": ["> 1%", "last 2 versions", "not ie <= 8"] } }], "stage-2" ], "plugins": ["transform-vue-jsx"] }
或者直接去掉
"plugins": ["transform-vue-jsx", "transform-runtime"]