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

无法编译支付宝小程序 #83

Open
AprilLemon opened this issue Dec 9, 2022 · 0 comments
Open

无法编译支付宝小程序 #83

AprilLemon opened this issue Dec 9, 2022 · 0 comments

Comments

@AprilLemon
Copy link

存在动态绑定class类的情况下,编译到支付宝小程序里直接报错。

Module build failed (from C:/snapshot/code-repo/out/target/bundle/node_modules/@ali/antcube-thread-loader/lib/cjs.js):
Thread Loader (Worker 0)
Expected "
at (c:\Workspace\gitlab\efficient-wx\dist\dev\mp-alipay\pages\search\modules\Hots.axml:1:1322)

at (c:\Workspace\gitlab\efficient-wx\dist\dev\mp-alipay\pages\search\modules\Hots.axml:1:1322)
Module build failed (from C:/snapshot/code-repo/out/target/bundle/node_modules/@ali/antcube-thread-loader/lib/cjs.js):
Thread Loader (Worker 1)
Expected "
at (c:\Workspace\gitlab\efficient-wx\dist\dev\mp-alipay\pages\search\modules\Hots.axml:1:1322)

at (c:\Workspace\gitlab\efficient-wx\dist\dev\mp-alipay\pages\search\modules\Hots.axml:1:1322)

报错情况:

 <view
        v-for="(item,index) in table.list"
        :key="index"
        class="mt-[41rpx] text-center tracking-[2.8rpx]"
        :class="[table.index === index ? 'text-theme' : 'text-main']"
        @tap="fetchHotDetail(item, index)"
      >
        {{ item.name }}
 </view>

不报错:

 <view class="hot-item">
      <view
        v-for="(item,index) in table.list"
        :key="index"
        class="base-item"
        :class="[table.index === index ? 'text-theme' : 'text-main']"
        @tap="fetchHotDetail(item, index)"
      >
        {{ item.name }}
      </view>
 </view>

css: 
.base-item{
@apply @apply mt-[41rpx] text-center tracking-[2.8rpx];
}

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