Open Aqzhyi opened 2 years ago
s
is expected to be a string. For this issue, we should fix the caller instead of modifying this function
Hi, greetings, what do you mean? Which caller?
Do you mean I should fix it on my application itself and not this package?
I tried several ways but I can't fix it unless modifying this package.
import * as OpenCC from 'opencc-js'
export const toTW = OpenCC.Converter({ from: 'cn', to: 'tw' })
It builds ok, but broke after running npm start
Or maybe, what is your suggestions for updating the pull request?
Hi, @Aqzhyi. I have just checked and I can run your code without any errors.
import * as OpenCC from 'opencc-js';
const toTW = OpenCC.Converter({ from: 'cn', to: 'tw' });
console.log(toTW('吃面')); // 吃麵
ok, thank you many thanks, let me do more trials.
failed on Linode and netlify. but local looks working.