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

新建小程序插件 打包出错 not contain an export named 'createNativeComponentConfig' #11381

Closed
KaisCoder opened this issue Mar 3, 2022 · 3 comments
Labels
enhancement New feature or request F-vue2 Framework - Vue 2 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@KaisCoder
Copy link

相关平台

微信小程序

小程序基础库: 2.22.1
使用框架: Vue 2

复现步骤

新建 小程序插件 执行 taro build --plugin weapp 打包命令
出现下面错误:
./src/plugin/views/index/index.vue 13:21-48
" '@tarojs/plugin-framework-vue2/dist/runtime' does not contain an export named 'createNativeComponentConfig'.

./src/plugin/components/avatar/avatar.vue 13:21-48
" '@tarojs/plugin-framework-vue2/dist/runtime' does not contain an export named 'createNativeComponentConfig'.

期望结果

打包运行不会出现错误

实际结果

出错

环境信息

👽 Taro v3.4.2


  Taro CLI 3.4.2 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 16.13.1 - D:\nodeJS\node.EXE
      Yarn: 1.22.11 - C:\Users\i2kai\AppData\Roaming\npm\yarn.CMD
      npm: 8.1.2 - D:\nodeJS\npm.CMD


补充信息

新建 小程序插件 执行 taro build --plugin weapp 打包命令
出现下面错误:
./src/plugin/views/index/index.vue 13:21-48
" '@tarojs/plugin-framework-vue2/dist/runtime' does not contain an export named 'createNativeComponentConfig'.

./src/plugin/components/avatar/avatar.vue 13:21-48
" '@tarojs/plugin-framework-vue2/dist/runtime' does not contain an export named 'createNativeComponentConfig'.

@taro-bot2 taro-bot2 bot added F-vue2 Framework - Vue 2 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Mar 3, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Mar 3, 2022

等待热心的小伙伴解决问题中..., 有一些相关的 issues 可能帮助到你!

Thank you so much!

@Chen-jj
Copy link
Contributor

Chen-jj commented Mar 3, 2022

vue 还没支持编译为小程序插件的,正在跟进中

@Chen-jj Chen-jj added the enhancement New feature or request label Mar 3, 2022
@KaisCoder
Copy link
Author

vue 还没支持编译为小程序插件的,正在跟进中

好的。谢谢啊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request F-vue2 Framework - Vue 2 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

2 participants