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

微信小程序 taro/cli4.0.2+vite4.2.0+vue3.x TypeError: Cannot read property 'createTextNode' of null #16141

Closed
Aliujiayu opened this issue Jul 23, 2024 · 9 comments
Labels
F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-4 Version - 4.x

Comments

@Aliujiayu
Copy link

Aliujiayu commented Jul 23, 2024

相关平台

微信小程序

复现仓库

https://github.com/Aliujiayu/taro4.git
Taro版本: 4.0.2
小程序基础库: 3.5.0
使用框架: Vue 3

复现步骤

taro init xtEvaluation
? 请输入项目介绍 测评
? 请选择框架 Vue3
? 是否需要使用 TypeScript ? Yes
? 请选择 CSS 预处理器(Sass/Less/Stylus) 无
? 请选择包管理工具 pnpm
? 请选择编译工具 Vite
? 请选择模板源 CLI 内置默认模板
直接运行即可

期望结果

运行起来

实际结果

app.js错误:
TypeError: app.js错误:
TypeError: Cannot read property 'createTextNode' of null
at createText (vendors.js? [sm]:6775)
at processFragment (vendors.js? [sm]:4067)
at patch (vendors.js? [sm]:3643)
at ReactiveEffect.componentUpdateFn [as fn] (vendors.js? [sm]:4285)
at ReactiveEffect.value (vendors.js? [sm]:354)
at instance.update (vendors.js? [sm]:4409)
at setupRenderEffect (vendors.js? [sm]:4419)
at mountComponent (vendors.js? [sm]:4187)
at processComponent (vendors.js? [sm]:4141)
at patch (vendors.js? [sm]:3669)(env: macOS,mp,1.06.2407101; lib: 3.5.0)
at createText (vendors.js? [sm]:6775)
at processFragment (vendors.js? [sm]:4067)
at patch (vendors.js? [sm]:3643)
at ReactiveEffect.componentUpdateFn [as fn] (vendors.js? [sm]:4285)
at ReactiveEffect.value (vendors.js? [sm]:354)
at instance.update (vendors.js? [sm]:4409)
at setupRenderEffect (vendors.js? [sm]:4419)
at mountComponent (vendors.js? [sm]:4187)
at processComponent (vendors.js? [sm]:4141)
at patch (vendors.js? [sm]:3669)(env: macOS,mp,1.06.2407101; lib: 3.5.0)

环境信息

 Taro v4.0.2


  Taro CLI 4.0.2 environment info:
    System:
      OS: macOS 14.0
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 20.11.0 - /usr/local/bin/node
      Yarn: 1.21.1 - /usr/local/bin/yarn
      npm: 10.2.4 - /usr/local/bin/npm
    npmPackages:
      @tarojs/cli: 4.0.2 => 4.0.2 
      @tarojs/components: 4.0.2 => 4.0.2 
      @tarojs/helper: 4.0.2 => 4.0.2 
      @tarojs/plugin-framework-vue3: 4.0.2 => 4.0.2 
      @tarojs/plugin-platform-alipay: 4.0.2 => 4.0.2 
      @tarojs/plugin-platform-h5: 4.0.2 => 4.0.2 
      @tarojs/plugin-platform-harmony-hybrid: 4.0.2 => 4.0.2 
      @tarojs/plugin-platform-jd: 4.0.2 => 4.0.2 
      @tarojs/plugin-platform-qq: 4.0.2 => 4.0.2 
      @tarojs/plugin-platform-swan: 4.0.2 => 4.0.2 
      @tarojs/plugin-platform-tt: 4.0.2 => 4.0.2 
      @tarojs/plugin-platform-weapp: 4.0.2 => 4.0.2 
      @tarojs/runtime: 4.0.2 => 4.0.2 
      @tarojs/shared: 4.0.2 => 4.0.2 
      @tarojs/taro: 4.0.2 => 4.0.2 
      @tarojs/vite-runner: 4.0.2 => 4.0.2 
      babel-preset-taro: 4.0.2 => 4.0.2 
      eslint-config-taro: 4.0.2 => 4.0.2 

补充信息

1,项目版本为:taro4 vite4 vue3
2,babel.config.js中不是已经默认引用了babel-preset-taro吗?怎么这个还能报这个错
Either disable config file checking with requireConfigFile: false, or configure Babel so that it can find the config files.eslint
3,什么都没改,直接初始化项目都报错

@taro-bot2 taro-bot2 bot added F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Jul 23, 2024
@TheKonka TheKonka added V-4 Version - 4.x and removed V-3 Version - 3.x labels Jul 24, 2024
@Aliujiayu Aliujiayu changed the title TypeError: Cannot read property 'createTextNode' of null 微信小程序 taro/cli4.0.2+vite4.2.0+vue3.x TypeError: Cannot read property 'createTextNode' of null Jul 24, 2024
@490626721
Copy link

现在直接issues都不让提了?新提issues表单内容拼接到url上提交?😅

@490626721
Copy link

现在直接issues都不让提了?新提issues表单内容拼接到url上提交?😅

捕获2
捕获

@Aliujiayu
Copy link
Author

现在直接issues都不让提了?新提issues表单内容拼接到url上提交?😅

捕获2 捕获

额这个咱不知道啊。。。。我2天前提的,你提我这他们也看不着吧

@ZEJIA-LIU
Copy link
Contributor

4.0.3应该已经修复该问题了

@ZEJIA-LIU
Copy link
Contributor

issues表单内容拼接到

现在直接issues都不让提了?新提issues表单内容拼接到url上提交?😅

欢迎提交issue,感谢反馈问题,我们会尽快修复

@Aliujiayu
Copy link
Author

4.0.3应该已经修复该问题了

2,babel.config.js中不是已经默认引用了babel-preset-taro吗?怎么这个还能报这个错
Either disable config file checking with requireConfigFile: false, or configure Babel so that it can find the config files.eslint

我提的这个也修复了吗?.eslint设置为requireConfigFile: false,4.0也有其他报错,不知所云,3.6设置后就无报错了,我目前已经降级到3.6开发了,请问我想恢复到4的话,版本稳定吗?

@liqinuo
Copy link
Contributor

liqinuo commented Jul 26, 2024

现在直接issues都不让提了?新提issues表单内容拼接到url上提交?😅

可以正常提交的哦,请重新试试呢,同时检查下提交的内容是否符合

@490626721
Copy link

现在直接issues都不让提了?新提issues表单内容拼接到url上提交?😅

可以正常提交的哦,请重新试试呢,同时检查下提交的内容是否符合

我这边不行,提交还是直接把内容拼接到url上,导致提交失败
1722237121906
8b08af7eab8717e6cd3f0ee519896eb

@490626721
Copy link

现在直接issues都不让提了?新提issues表单内容拼接到url上提交?😅

捕获2 捕获

额这个咱不知道啊。。。。我2天前提的,你提我这他们也看不着吧

🥰借用一下楼层,他们能看到,多谢~

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-weapp Target - 编译到微信小程序 V-4 Version - 4.x
Projects
Archived in project
Development

No branches or pull requests

5 participants