because (non compiled) import from ts files is not possible during runtime wihtout jiti,
the issue arises that the file cannot be found.
this PR changes the import to an "mjs" which then loads the dependencies through jiti. Therefore it's possible to use typescript again!
Issue was only for dev mode, production mode works fine so far.
fixes https://github.com/wobsoriano/nuxt3-socket.io/issues/2
because (non compiled) import from ts files is not possible during runtime wihtout jiti, the issue arises that the file cannot be found. this PR changes the import to an "mjs" which then loads the dependencies through jiti. Therefore it's possible to use typescript again!
Issue was only for dev mode, production mode works fine so far.
opened a topic at nuxt discord: https://discord.com/channels/473401852243869706/1078318315279241316