svelte-oauth2 icon indicating copy to clipboard operation
svelte-oauth2 copied to clipboard

Import error in Svelet 4.0

Open thylou opened this issue 1 year ago • 1 comments

Hi,

I tryed to use your OAuth2 library in our project, but I have the foloowing error during import of the lib


Could not find a declaration file for module '@macfja/svelte-oauth2'. '/workspace/retail-planner/frontend/node_modules/@macfja/svelte-oauth2/dist/index.mjs' implicitly has an 'any' type. Try npm i --save-dev @types/macfja__svelte-oauth2 if it exists or add a new declaration (.d.ts) file containing declare module '@macfja/svelte-oauth2';ts(7016)

My Environnement : "svelte": "^4.0.5",

thylou avatar Dec 18 '23 09:12 thylou

OK, the issue is that I forget to add the types in the export section of the packages.json.

I will try to fix it soon, but I'm off for a couple of weeks.

MacFJA avatar Dec 20 '23 16:12 MacFJA