insane-jo / talib-wasm

MIT License
26 stars 6 forks source link

Is there any demo code for vue3 with typescript? #13

Open newproplus opened 2 years ago

newproplus commented 2 years ago

I tried the fllowing code:

import talib from "talib-wasm"
talib.then((funcs) => {
  console.log("abc");
});

but it will blocked with the message : 98% after emitting CopyPlugin

insane-jo commented 2 years ago

Try to use this code from comment

https://github.com/insane-jo/talib-wasm/issues/1#issuecomment-593311260

newproplus commented 2 years ago

@insane-jo I tried to copy the folder node_modules\talib-wasm\build to /src/utils/talib-wasm/, and my code like:

import ta from "@/utils/talib-wasm/main.js";
ta.then((funcs: any) => {
    console.log("abc");
    }
)

but it does not work,still stopped at 98% after emitting CopyPlugin Could you show a simple demo? Thank you.

insane-jo commented 2 years ago

Can you show error?

newproplus commented 2 years ago

@insane-jo There are no errors,terminal has be stopped at 98% after emitting CopyPlugin