barvian / sveltekit-document

The missing document manager for SvelteKit
55 stars 2 forks source link

Cannot find module '@sveltekit-addons/document/hooks' #1

Open digi4care opened 1 year ago

digi4care commented 1 year ago

I am getting this error:

Cannot find module '@sveltekit-addons/document/hooks' or its corresponding type declarations.ts

weird part that everything is working?

my code in the hooks.server.ts

import { auth } from '$lib/server/lucia';
import { handleHooks } from '@lucia-auth/sveltekit';

import { handle as documentHandle } from '@sveltekit-addons/document/hooks';
import { sequence } from '@sveltejs/kit/hooks';

export const handle = sequence(handleHooks(auth), documentHandle);
digi4care commented 1 year ago

im getting a squirly line under the ~@sveltekit-addons/document/hooks~

0xJohnnyboy commented 1 year ago

Same here exactly, it shows an error but it works. I guess there's no type declaration. I haven't looked into the code at the moment but all examples are using *.js files...

barvian commented 1 year ago

Thanks for the report. I can reproduce this but not sure what the issue is yet...

tylermcrobert commented 1 year ago

If it helps, I'm not getting an error with @sveltekit-addons/document