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

Please help with this issue. path.join is not a function #108

Open
mhqihan opened this issue May 19, 2023 · 3 comments
Open

Please help with this issue. path.join is not a function #108

mhqihan opened this issue May 19, 2023 · 3 comments

Comments

@mhqihan
Copy link

mhqihan commented May 19, 2023

image
image

@Hadjimina
Copy link

I have the same issue ☹️

@Judy-Nihao
Copy link

I ran into the same error! :(

@milimyname
Copy link

Hi everyone.

U can't call packages in the browser. Use them in node js instead.

I use Sveltekit and put them to a page server ts which uses node js in the background.

import Kuroshiro from 'kuroshiro';
import KuromojiAnalyzer from 'kuroshiro-analyzer-kuromoji';

const kuroshiro = new Kuroshiro();

export const load = async () => {
	await kuroshiro.init(new KuromojiAnalyzer());
	const result = await kuroshiro.convert(
		'感じ取れたら手を繋ごう、重なるのは人生のライン and レミリア最高!',
		{ to: 'hiragana', mode: 'furigana' }
	);

	return { result };
};

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

4 participants