wechat-miniprogram / wechat-miniprogram/mpflow

不同页面的wxml中include相同的template文件打包出来路径和预想结果错误

Open
#8 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
66
Forks
14
Avg merge
38m
Merged PRs (30d)
2

Description

例如:
index页面和logs页面都通过include相对路径进来一个template文件,打包出来的dist目录里显示的最终路径是错误的,并且只有index目录有对应的template文件,logs目录里面没有。导致logs页面没有正常显示

image

image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the case described with index and logs WXML pages that include the same template through relative paths, then inspect the generated dist directory and compare the paths and copied files. Done means both page outputs contain the template at the correct path and the logs page renders normally.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.