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

微信小程序 编译出错, 提示:TypeError: Cannot read property 'createTextNode' of null #17237

Open
scially opened this issue Jan 25, 2025 · 1 comment

Comments

@scially
Copy link

scially commented Jan 25, 2025

相关平台

微信小程序

复现仓库

[email protected]:scially/Study.git
小程序基础库: 3.6.6
使用框架: Vue 3

复现步骤

cnpm run build:weapp

然后在微信小程序开发者工具中导入

期望结果

正常编译

实际结果

编译错误,提示:

app.js错误:
 TypeError: Cannot read property 'createTextNode' of null
    at createText (vendors.js?t=wechat&s=1737818321077&v=3f3970632cb3c6eb4dd82772931fcf79:7257)
    at processFragment (vendors.js?t=wechat&s=1737818321077&v=3f3970632cb3c6eb4dd82772931fcf79:4674)
    at patch (vendors.js?t=wechat&s=1737818321077&v=3f3970632cb3c6eb4dd82772931fcf79:4250)
    at ReactiveEffect.componentUpdateFn [as fn] (vendors.js?t=wechat&s=1737818321077&v=3f3970632cb3c6eb4dd82772931fcf79:4893)
    at ReactiveEffect.run (vendors.js?t=wechat&s=1737818321077&v=3f3970632cb3c6eb4dd82772931fcf79:378)
    at setupRenderEffect (vendors.js?t=wechat&s=1737818321077&v=3f3970632cb3c6eb4dd82772931fcf79:5021)
    at mountComponent (vendors.js?t=wechat&s=1737818321077&v=3f3970632cb3c6eb4dd82772931fcf79:4796)
    at processComponent (vendors.js?t=wechat&s=1737818321077&v=3f3970632cb3c6eb4dd82772931fcf79:4748)
    at patch (vendors.js?t=wechat&s=1737818321077&v=3f3970632cb3c6eb4dd82772931fcf79:4276)
    at render (vendors.js?t=wechat&s=1737818321077&v=3f3970632cb3c6eb4dd82772931fcf79:5547)
TypeError: Cannot read property 'createTextNode' of null
    at createText (vendors.js?t=wechat&s=1737818321077&v=3f3970632cb3c6eb4dd82772931fcf79:7257)
    at processFragment (vendors.js?t=wechat&s=1737818321077&v=3f3970632cb3c6eb4dd82772931fcf79:4674)
    at patch (vendors.js?t=wechat&s=1737818321077&v=3f3970632cb3c6eb4dd82772931fcf79:4250)
    at ReactiveEffect.componentUpdateFn [as fn] (vendors.js?t=wechat&s=1737818321077&v=3f3970632cb3c6eb4dd82772931fcf79:4893)
    at ReactiveEffect.run (vendors.js?t=wechat&s=1737818321077&v=3f3970632cb3c6eb4dd82772931fcf79:378)
    at setupRenderEffect (vendors.js?t=wechat&s=1737818321077&v=3f3970632cb3c6eb4dd82772931fcf79:5021)
    at mountComponent (vendors.js?t=wechat&s=1737818321077&v=3f3970632cb3c6eb4dd82772931fcf79:4796)
    at processComponent (vendors.js?t=wechat&s=1737818321077&v=3f3970632cb3c6eb4dd82772931fcf79:4748)
    at patch (vendors.js?t=wechat&s=1737818321077&v=3f3970632cb3c6eb4dd82772931fcf79:4276)
    at render (vendors.js?t=wechat&s=1737818321077&v=3f3970632cb3c6eb4dd82772931fcf79:5547)

环境信息

👽 Taro v4.0.9


  Taro CLI 4.0.9 environment info:
    System:
      OS: macOS 14.5
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 20.18.2 - ~/.nvm/versions/node/v20.18.2/bin/node
      npm: 10.8.2 - ~/.nvm/versions/node/v20.18.2/bin/npm
    npmPackages:
      @tarojs/cli: 4.0.6 => 4.0.6 
      @tarojs/components: 4.0.6 => 4.0.6 
      @tarojs/helper: 4.0.6 => 4.0.6 
      @tarojs/plugin-framework-vue3: 4.0.6 => 4.0.6 
      @tarojs/plugin-html: 4.0.6 => 4.0.6 
      @tarojs/plugin-platform-alipay: 4.0.6 => 4.0.6 
      @tarojs/plugin-platform-h5: 4.0.6 => 4.0.6 
      @tarojs/plugin-platform-jd: 4.0.6 => 4.0.6 
      @tarojs/plugin-platform-qq: 4.0.6 => 4.0.6 
      @tarojs/plugin-platform-swan: 4.0.6 => 4.0.6 
      @tarojs/plugin-platform-tt: 4.0.6 => 4.0.6 
      @tarojs/plugin-platform-weapp: 4.0.6 => 4.0.6 
      @tarojs/runtime: 4.0.6 => 4.0.6 
      @tarojs/shared: 4.0.6 => 4.0.6 
      @tarojs/taro: 4.0.6 => 4.0.6 
      @tarojs/vite-runner: 4.0.6 => 4.0.6 
      babel-preset-taro: 4.0.6 => 4.0.6 
      eslint-config-taro: 4.0.6 => 4.0.6 
@scially
Copy link
Author

scially commented Jan 25, 2025

Image

This was referenced Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant