Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

taro3.4.2编译后在钉钉小程序开发工具里打开项目报错 #11413

Closed
491467928 opened this issue Mar 8, 2022 · 5 comments
Closed
Labels
F-vue3 Framework - Vue 3 T-dd V-3 Version - 3.x

Comments

@491467928
Copy link

相关平台

钉钉小程序

使用框架: Vue 3

复现步骤

新建一个项目,taro3.4.2 vue3 nutui,然后安装钉钉编译插件@tarojs/plugin-platform-alipay-dd,然后根据官方教程设置plugin,然后taro build --type dd,等编译好后,用钉钉小程序开发工具打开dist目录,在钉钉小程序的开发工具控制台里会出现报错,无法正常加载页面

Failed to compile
c:\mycode\t34\dist\vendors.js: Unexpected token (2331:124)
Please set enableNodeModuleBabelTransform to true or add "c:/mycode/t34/dist/vendors.js" to node_modules_es6_whitelist in mini.project.json for node_modules babel transform

期望结果

正常运行

实际结果

报错

环境信息

 Taro CLI 3.4.2 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 14.17.5 - C:\Program Files\nodejs\node.EXE
      npm: 6.14.15 - C:\Program Files\nodejs\npm.CMD

@taro-bot2 taro-bot2 bot added F-vue3 Framework - Vue 3 T-dd V-3 Version - 3.x labels Mar 8, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Mar 8, 2022

@Chen-jj
Copy link
Contributor

Chen-jj commented Mar 12, 2022

@491467928 3.4.3 没有复现:

image

@emaoxiongzhang
Copy link

相关平台

钉钉小程序

使用框架: Vue 3

复现步骤

新建一个项目,taro3.4.2 vue3 nutui,然后安装钉钉编译插件@tarojs/plugin-platform-alipay-dd,然后根据官方教程设置plugin,然后taro build --type dd,等编译好后,用钉钉小程序开发工具打开dist目录,在钉钉小程序的开发工具控制台里会出现报错,无法正常加载页面

Failed to compile c:\mycode\t34\dist\vendors.js: Unexpected token (2331:124) Please set enableNodeModuleBabelTransform to true or add "c:/mycode/t34/dist/vendors.js" to node_modules_es6_whitelist in mini.project.json for node_modules babel transform

期望结果

正常运行

实际结果

报错

环境信息

 Taro CLI 3.4.2 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 14.17.5 - C:\Program Files\nodejs\node.EXE
      npm: 6.14.15 - C:\Program Files\nodejs\npm.CMD

请问解决了,我也是这个问题
啥也没干就按照了钉钉小程序插件,钉钉build了一下
d:\Web\FrontEnd\*****\dist\vendors.js: Unexpected token (2331:124) Please set enableNodeModuleBabelTransform to true or add "d:/Web/FrontEnd/*****/dist/vendors.js" to node_modules_es6_whitelist in mini.project.json for node_modules babel transform

@491467928
Copy link
Author

@Chen-jj

3.4.3依然有这个问题,只要是用taro build --type dd,参照这个issue里的问题

@Chen-jj
Copy link
Contributor

Chen-jj commented Apr 12, 2022

#11133

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-vue3 Framework - Vue 3 T-dd V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

3 participants