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

无依赖文件报错 #293

Open
caijichenchen opened this issue Sep 4, 2024 · 1 comment
Open

无依赖文件报错 #293

caijichenchen opened this issue Sep 4, 2024 · 1 comment

Comments

@caijichenchen
Copy link

构建运行报错:
在parse/markdown/plugins/emoji.js 里引用了 lib 下的一些文件,但是构建出来产物里并没有这些资源文件。
源代码:
var e=require("./lib/data/full.json"),n=require("./lib/data/shortcuts"),o=require("./lib/render"),i=require("./lib/replace"),r=require("./lib/normalize_opts");a.exports=function(a,){var t={defs:e,shortcuts:n,enabled:[]},s=r(a.utils.assign({},t,||{}));a.renderer.rules.emoji=o,a.core.ruler.push("emoji",i(a,s.defs,s.shortcuts,s.scanRE,s.replaceRE))}},{"./lib/data/full.json":1,"./lib/data/shortcuts":2,"./lib/normalize_opts":3,"./lib/render":4,"./lib/replace":5}]},{},[6])(6)
报错信息:
Could not resolve "./lib/data/full.json" from "src/wxcomponents/ToWxml/parse/markdown/plugins/emoji.js"

@sbfkcel
Copy link
Owner

sbfkcel commented Sep 18, 2024

是指构建失败,还是使用的时候失败?

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

2 participants