airbnb / goji-js

React ❤️ Mini Program
https://goji.js.org
MIT License
223 stars 27 forks source link

Cannot use <include> in <template> on Alipay #140

Closed malash closed 1 year ago

malash commented 2 years ago

Description

When lib v2 being enabled, <include> in <template> cause compilation error on Alipay dev tool.

image

Reproduct link

lib2-issue.zip

Reproduct steps

  1. Unzip the file
  2. Open in Alipay dev tool 2.7.2

Impact

GojiJS use this feature to import leaf-components in components and fails to run on latest Alipay.

Temporary solution

Replace <include> with src's content.

Platforms

malash commented 1 year ago

Reopen because leaf-components still not work with lib v2.

Veercodeprog commented 1 year ago

@malash is this open? i can try fixing

Veercodeprog commented 1 year ago

@malash can you explain what is needed to be done. do we have to change the include and use src attribute to include this file?

malash commented 1 year ago

I have reported this issue to official forum but got no useful info https://open.alipay.com/portal/forum/post/65101062

This problem becomes urgent and blocks Alipay miniapp development because Alipay force to use Lib v2 since rencently.