vue import EZUIKit from 'ezuikit-js'; 运行失败
运行时控制台打印js文件内容
请问解决了吗,我引入时也遇到了这样的问题
重复
请问解决了吗,我引入时也遇到了这样的问题
重复
没有 你这边有解决了 回复下
同问,之前用的时候还是好的,不知道改啥了,突然又不行了,控制台直接打印js
这个属于技术问题,建议您提交工单询问技术人员:https://open.ys7.com/console/work.html 发件人: ly112055 @.> 发送时间: 2024年6月12日 10:46 收件人: Ezviz-OpenBiz/EZUIKit-JavaScript-npm @.> 抄送: Subscribed @.***> 主题: Re: [Ezviz-OpenBiz/EZUIKit-JavaScript-npm] vue import EZUIKit from 'ezuikit-js'; 运行失败 (Issue #214)
同问,之前用的时候还是好的,不知道改啥了,突然又不行了,控制台直接打印js
— Reply to this email directly, view it on GitHubhttps://github.com/Ezviz-OpenBiz/EZUIKit-JavaScript-npm/issues/214#issuecomment-2161999020, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AD3TVURMOYVYG73VMPEHBT3ZG6Y63AVCNFSM6AAAAABJD7F642VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRRHE4TSMBSGA. You are receiving this because you are subscribed to this thread.Message ID: @.@.>>
本邮件及其附件含有萤石公司保密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件! This e-mail and its attachments contain confidential information from EZVIZ, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it!
同问,之前用的时候还是好的,不知道改啥了,突然又不行了,控制台直接打印js
如果是老的vue2 项目,可以升级一下 vue-cli-service, webpack 项目可以把 ezuikit.js 加入到 babel-loader 中
webpack4需要经过babel-loader处理才能正常import,如果此时还是出现unexpected token错误,需要调整下browserslist,一般 >1% last 2 versions就可以。
不过,既然已经输出了umd包,为什么还要让开发再走一遍babel,影响编译效率,这是源头问题,生产包的兼容性没处理好。