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

使用omi-cli创建的初始项目运行后报错 #316

Closed
ArleneShine opened this issue May 7, 2019 · 1 comment · May be fixed by 0c0c0f/omi#156, 0c0c0f/omi#157, 0c0c0f/omi#158, 0c0c0f/omi#159 or 0c0c0f/omi#160

Comments

@ArleneShine
Copy link

用omi-cli初始化项目后,运行"npm start"启动项目,发现/src/elements/app/index.js文件报错:
“Module not found: Can't resolve 'omiu/button' in 'F:\test\my-app\src\elements\app'”

import "omiu/button"改为import "omiu/src/button"才不会报错。看了一下node_modules里omiu包的内容,没有dist文件夹,感觉是omiu没有编译的问题(使用的omiu的版本号是@0.0.16)

@dntzhang
Copy link
Collaborator

dntzhang commented May 7, 2019

额~。我修复了。重新安装 omiu~~ 0.0.17。多谢~~

@dntzhang dntzhang closed this as completed May 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment