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

cannot find module statik #14

Closed
hesen2006cn opened this issue Nov 20, 2019 · 4 comments
Closed

cannot find module statik #14

hesen2006cn opened this issue Nov 20, 2019 · 4 comments

Comments

@hesen2006cn
Copy link

starter-kit/app/console/web/statik: cannot find module providing package github.com/micro-in-cn/starter-kit/app/console/web/statik

go:generate statik -src=./vue/dist -dest=./ -f 怎么操作?

@hb-chen
Copy link
Contributor

hb-chen commented Nov 20, 2019

@hb-chen
Copy link
Contributor

hb-chen commented Nov 20, 2019

如果只是对前端进行编译&打包可以这样
make vue statik

@hesen2006cn
Copy link
Author

谢谢,知道为什么不会搞了,vue这个js 框架没用过。

@hb-chen hb-chen closed this as completed Nov 20, 2019
@hesen2006cn
Copy link
Author

node -v
v13.1.0

npm -v
6.12.1

make build run

之后出现下面的错误:
Images and other types of assets omitted.

DONE Build complete. The dist directory is ready to be deployed.
INFO Check out deployment instructions at https://cli.vuejs.org/guide/deployment.html

go get github.com/rakyll/statik
go: github.com/casbin/casbin/v2@v2.1.1: Get https://proxy.golang.org/github.com/casbin/casbin/v2/@v/v2.1.1.mod: dial tcp 172.217.27.145:443: i/o timeout
make: *** [statik] Error 1

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