pixelmund/svemix

Relative imports in ssr scripts are wrong

Closed this issue · 2 comments

I've noticed that since we're writing the endpoints INSIDE the svemix folder, relative imports don't resolve correctly. I see three things to solve this problem:

  • Keep it as is and teach users to use aliases e.g. $lib.
  • Change the way it works currently by creating .json endpoints in the same directory as the route.
  • Scan all relative imports and replace them accordingly, probably very error prone.

Closed by #31, this is now documented here https://svemix.com/docs/getting-started/drawbacks

If anyone experiences this issue and has an idea to fix this let me know and i reopen this issue