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

用cli生成的项目中,list组件未生成.json文件 #41

Closed
yansm opened this issue Dec 20, 2018 · 2 comments
Closed

用cli生成的项目中,list组件未生成.json文件 #41

yansm opened this issue Dec 20, 2018 · 2 comments

Comments

@yansm
Copy link

yansm commented Dec 20, 2018

用cli生成的项目在运行时报错
VM650:2 未找到 plugin.json 中的定义的 publicComponents "components/list491edbce/list" 对应的 JSON 文件
稍微追了一下,webpack-plugin/lib/json-compiler 文件25行
const rootName = this._compilation._preparedEntrypoints[0].name
来判断是否为app文件并不准确,导致在113行上判断
if (resourcePath === rootName)
时rootName与resourcePath相等了,同为组件名,从而未生成组件的json文件。
具体是哪次做了shift操作?还是组件进入队列的优先级变高了没往下追
是只有我才有的问题吗?
image

@yansm
Copy link
Author

yansm commented Dec 21, 2018

好像是我选择了plugin project模式才会这样

@hiyuki
Copy link
Collaborator

hiyuki commented Dec 21, 2018

v1.0.13已修复,感谢反馈~

@hiyuki hiyuki closed this as completed Dec 21, 2018
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