vosk-server icon indicating copy to clipboard operation
vosk-server copied to clipboard

How to vue example?

Open litongjava opened this issue 1 year ago • 5 comments

How can I compile vue example? https://github.com/alphacep/vosk-server/tree/master/client-samples/vue

I try to compile vue example on MacOs with m2,but I am failed Can you tell more information about vue example Nodejs version? Compile step?

litongjava avatar Apr 25 '23 19:04 litongjava

hello, you can try node: 16.17.0. My initial version was 18.16.0, but it also reported an error after running. Changing to this one will be successful.

ch930410 avatar Apr 26 '23 07:04 ch930410

@ch930410 sorry,I test fail with the node version 16.17.0 on Windows,error info

>node -v
v16.17.0

ERROR  Failed to compile with 2 errors                                                                                                                                                                  16:22:06
These relative modules were not found:

* ../../assets/fonts/Cairo/Cairo-Regular.ttf in ./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-3-1!./node_modules/postcss-loader/src??ref--8-oneOf-3-2!./node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-3-3!./src/assets/scss/main.scss
* ../../assets/fonts/Zilla_Slab/ZillaSlab-Medium.ttf in ./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-3-1!./node_modules/postcss-loader/src??ref--8-oneOf-3-2!./node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-3-3!./src/assets/scss/main.scss
终止批处理操作吗(Y/N)? y

litongjava avatar Apr 26 '23 08:04 litongjava

this is a resource that was not found. Please find this introduction in the code and comment on it.

ch930410 avatar May 05 '23 01:05 ch930410

Can you tell me which file and line number?I am not very good at frontend

litongjava avatar May 05 '23 02:05 litongjava

https://github.com/alphacep/vosk-server/blob/master/client-samples/vue/src/assets/scss/_base.scss#L4 https://github.com/alphacep/vosk-server/blob/master/client-samples/vue/src/assets/scss/_base.scss#L10

Introduction of annotation font files

ch930410 avatar May 05 '23 02:05 ch930410