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

开启useXsForTemplate,Map地图组件编译模板报错 #17430

Open
outman-2024 opened this issue Mar 13, 2025 · 0 comments
Open

开启useXsForTemplate,Map地图组件编译模板报错 #17430

outman-2024 opened this issue Mar 13, 2025 · 0 comments

Comments

@outman-2024
Copy link

相关平台

微信小程序

小程序基础库: 3.7.8
使用框架: React

复现步骤

Bad attr setting with message: unexpected token }.
<map .... setting="{{i.p24===undefined?{}:i.p24}}" ... >

期望结果

正常渲染

实际结果

报错

环境信息

 Taro CLI 4.0.9 environment info:
    System:
      OS: macOS 13.4
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 22.11.0 - /usr/local/bin/node
      Yarn: 1.22.19 - /usr/local/bin/yarn
      npm: 10.9.0 - /usr/local/bin/npm
    npmPackages:
      @tarojs/cli: 4.0.9 => 4.0.9
      @tarojs/components: 4.0.9 => 4.0.9
      @tarojs/plugin-framework-react: 4.0.9 => 4.0.9
      @tarojs/plugin-platform-weapp: 4.0.9 => 4.0.9
      @tarojs/react: 4.0.9 => 4.0.9
      @tarojs/runtime: 4.0.9 => 4.0.9
      @tarojs/taro: 4.0.9 => 4.0.9
      @tarojs/webpack5-runner: 4.0.9 => 4.0.9
      babel-preset-taro: 4.0.9 => 4.0.9
      eslint-config-taro: 4.0.9 => 4.0.9
      react: ^16.10.0 => 16.14.0
      taro-ui: 3.0.0-alpha.3 => 3.0.0-alpha.3
    npmGlobalPackages:
      typescript: 5.4.5
This was referenced Mar 15, 2025
@outman-2024 outman-2024 changed the title 开始useXsForTemplate,Map地图组件编译模板报错 开启useXsForTemplate,Map地图组件编译模板报错 Mar 17, 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