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

include template导致报错 #2

Open
DeAntiWang opened this issue Sep 1, 2022 · 1 comment
Open

include template导致报错 #2

DeAntiWang opened this issue Sep 1, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@DeAntiWang
Copy link

报错信息如下:

❌ ENOENT: no such file or directory, open '/Users/xxx/project/projectA/src/components/card/template/normal/normal' Error: ENOENT: no such file or directory, open '/Users/xxx/project/projectA/src/components/card/template/normal/normal'
    at Object.openSync (node:fs:506:3)
    at readFileSync (node:fs:402:35)
    at file:///Users/xxx/.nvm/versions/node/v16.0.0/lib/node_modules/skylint/dist/cli.mjs:1193:18
    at Array.map (<anonymous>)
    at collectTemplate (file:///Users/xxx/.nvm/versions/node/v16.0.0/lib/node_modules/skylint/dist/cli.mjs:1192:20)
    at Object.onVisit (file:///Users/xxx/.nvm/versions/node/v16.0.0/lib/node_modules/skylint/dist/cli.mjs:1166:24)
    at file:///Users/xxx/.nvm/versions/node/v16.0.0/lib/node_modules/skylint/dist/chunks/parser.mjs:213:23
    at Array.forEach (<anonymous>)
    at file:///Users/xxx/.nvm/versions/node/v16.0.0/lib/node_modules/skylint/dist/chunks/parser.mjs:212:13
    at walk$2 (file:///Users/xxx/.nvm/versions/node/v16.0.0/lib/node_modules/skylint/dist/chunks/parser.mjs:133:7)

其中路径projectA/src/components/card/template/normal/normalnormal.wxml文件,提供给components/card/card.wxml引用使用,引用方法为<include src="..."></include>

@ManiaciaChao ManiaciaChao added the bug Something isn't working label Sep 2, 2022
@DongZhouJone
Copy link

希望不检测wxml中引入文件的后缀。wxml消除后缀也是解决包大小问题的一个办法,不太可能不去掉后缀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants