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

使用官方示例 渲染 HTML dangerouslySetInnerHTML 不生效 #16426

Open
ToQuery opened this issue Aug 30, 2024 · 7 comments · May be fixed by #16256
Open

使用官方示例 渲染 HTML dangerouslySetInnerHTML 不生效 #16426

ToQuery opened this issue Aug 30, 2024 · 7 comments · May be fixed by #16256
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@ToQuery
Copy link

ToQuery commented Aug 30, 2024

相关平台

微信小程序

复现仓库

https://github.com/ToQuery/taro-nutui-bug.git
小程序基础库: 3.5.4
使用框架: React

复现步骤

taro 版本为:v4.0.5

期望结果

支持dangerouslySetInnerHTML

实际结果

无任何内容

环境信息

👽 Taro v4.0.5


  Taro CLI 4.0.5 environment info:
    System:
      OS: macOS 14.2.1
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 20.11.0 - ~/.nvm/versions/node/v20.11.0/bin/node
      Yarn: 1.22.22 - /opt/homebrew/bin/yarn
      npm: 10.2.4 - ~/.nvm/versions/node/v20.11.0/bin/npm
    npmPackages:
      @tarojs/cli: 4.0.5 => 4.0.5 
      @tarojs/components: 4.0.5 => 4.0.5 
      @tarojs/helper: 4.0.5 => 4.0.5 
      @tarojs/plugin-framework-react: 4.0.5 => 4.0.5 
      @tarojs/plugin-html: 4.0.5 => 4.0.5 
      @tarojs/plugin-platform-alipay: 4.0.5 => 4.0.5 
      @tarojs/plugin-platform-h5: 4.0.5 => 4.0.5 
      @tarojs/plugin-platform-jd: 4.0.5 => 4.0.5 
      @tarojs/plugin-platform-qq: 4.0.5 => 4.0.5 
      @tarojs/plugin-platform-swan: 4.0.5 => 4.0.5 
      @tarojs/plugin-platform-tt: 4.0.5 => 4.0.5 
      @tarojs/plugin-platform-weapp: 4.0.5 => 4.0.5 
      @tarojs/react: 4.0.5 => 4.0.5 
      @tarojs/runtime: 4.0.5 => 4.0.5 
      @tarojs/shared: 4.0.5 => 4.0.5 
      @tarojs/taro: 4.0.5 => 4.0.5 
      @tarojs/taro-loader: 4.0.5 => 4.0.5 
      @tarojs/webpack5-runner: 4.0.5 => 4.0.5 
      babel-preset-taro: 4.0.5 => 4.0.5 
      eslint-config-taro: 4.0.5 => 4.0.5 
      react: ^18.0.0 => 18.3.1 

@taro-bot2 taro-bot2 bot added F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Aug 30, 2024
@ToQuery
Copy link
Author

ToQuery commented Aug 30, 2024

image image

@TheKonka
Copy link
Member

可以在编译配置里面 临时加下这个 alias
@tarojs/runtime': require.resolve('@tarojs/runtime')

@ToQuery
Copy link
Author

ToQuery commented Sep 1, 2024

可以在编译配置里面 临时加下这个 alias @tarojs/runtime': require.resolve('@tarojs/runtime')

临时显示了

@gaoyan1998
Copy link

可以在编译配置里面 临时加下这个 alias @tarojs/runtime': require.resolve('@tarojs/runtime')

具体那个文件呢,我也有这个问题。4.0.5

@TheKonka
Copy link
Member

可以在编译配置里面 临时加下这个 alias @tarojs/runtime': require.resolve('@tarojs/runtime')

具体那个文件呢,我也有这个问题。4.0.5

config/index.js

@qiaolin-pan
Copy link

希望尽快修复这个问题啊

@jasper-ops
Copy link

啊,还没修复,25年了,尴尬

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
Status: Todo
Development

Successfully merging a pull request may close this issue.

5 participants