xpyjs / gantt-vue2

MIT License
13 stars 8 forks source link

vue2引入报错,已固定版本 #6

Closed zhouhexiang12 closed 1 year ago

zhouhexiang12 commented 1 year ago

image

zhouhexiang12 commented 1 year ago

./node_modules/@xpyjs/gantt-vue2/lib/index.umd.min.js 15:21160 Module parse failed: Unexpected token (15:21160) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders | OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | PERFORMANCE OF THIS SOFTWARE.


jeremyjone commented 1 year ago

how?

karlbin commented 1 year ago

引入依旧报这个错误,请问如何解决?整体脚手架是ruoyi,引入本gantt启动失败,报如上同样的错误。

企业微信截图_16759968909159

改为非压缩文件后能看到具体的报错信息如上

jeremyjone commented 1 year ago

引入依旧报这个错误,请问如何解决?整体脚手架是ruoyi,引入本gantt启动失败,报如上同样的错误。

企业微信截图_16759968909159

改为非压缩文件后能看到具体的报错信息如上

@karlbin 这是缺 js 语法插件啊,??ES2020 的新特性,试一下 @babel/plugin-proposal-nullish-coalescing-operator,或者直接升级 babel 版本