wemark icon indicating copy to clipboard operation
wemark copied to clipboard

在 taro 2.0 该如何使用?

Open OHeroJ opened this issue 5 years ago • 4 comments

OHeroJ avatar Jan 12 '20 03:01 OHeroJ

@OHeroJ @TooBug Hi, I hava solved this problem, and just copy wemark to dist/wemark, step:

1.yarn dev:weapp 
2.copy wemark to dist

reason: lack of some core files with build. good luck.

moremind avatar Jan 19 '20 16:01 moremind

@OHeroJ @TooBug Hi, I hava solved this problem, and just copy wemark to dist/wemark, step:

1.yarn dev:weapp 
2.copy wemark to dist

reason: lack of some core files with build. good luck.

I find this bug,you can see this issue. Wemark Issue. my config:

copy: {
    patterns: [
      { from: 'src/wemark', to: 'dist/wemark' },
    ],
    options: {}
  },
  mini: {
    compile: {
      exclude: [
        path.resolve(__dirname, '..', 'src/wemark/remarkable.js')
      ]
    },
}

moremind avatar Jan 20 '20 02:01 moremind

在 taro 3 中使用,会报这个错:

[WXML Runtime warning] ./base.wxml
 Template `tmpl_0_wemark` not found.
  287 | 
  288 | <template name="tmpl_1_container">
> 289 |   <template is="{{xs.a(1, i.nn, l)}}" data="{{i:i,cid:1,l:xs.f(l,i.nn)}}" />
      |                ^
  290 | </template>
  291 | 
  292 | <template name="tmpl_2_catch-view">

Jeff-Tian avatar Feb 22 '22 11:02 Jeff-Tian

在 taro 3 中使用,会报这个错:

[WXML Runtime warning] ./base.wxml
 Template `tmpl_0_wemark` not found.
  287 | 
  288 | <template name="tmpl_1_container">
> 289 |   <template is="{{xs.a(1, i.nn, l)}}" data="{{i:i,cid:1,l:xs.f(l,i.nn)}}" />
      |                ^
  290 | </template>
  291 | 
  292 | <template name="tmpl_2_catch-view">

+1

androidZzT avatar Jul 04 '23 10:07 androidZzT