Open seriouslysean opened 7 months ago
@itsalaidbacklife @seriouslysean Have you guys talked about this problem already : "The CJS build of Vite's Node API is deprecated." ?
@Posoroko as far as I can tell it’s not breaking anything, and both @itsalaidbacklife and I have been preoccupied with a few other things so no real movement on it.
Did you have something in mind for it or any interest in looking in to it further or fixing it?
@seriouslysean I've looked into it this morning. I wouldn't mind creating a branch where I make the changes to update tu ems modules. I'm not sure I can pull it off, but it would would probably teach me a thing or two about a few things.
There are a few solutions...
Esm as default and oot in cjs when needed Cjs as default and opt in esm when needed Or Dynamically import vite if we need to stick with cjs
I’d start here, https://vitejs.dev/guide/troubleshooting.
Dynamically import Vite: If you need to keep using CJS, you can dynamically import Vite using import('vite') instead. This requires your code to be written in an async context, but should still be manageable as Vite's API is mostly asynchronous.
Eventually @itsalaidbacklife and I want to move to TS so maybe we do that now and just allow normal JS files to be transpiled.
Bug Summary
Various warnings/errors thrown when building the app
Detailed Description
These need to be investigated and likeley solutioned/
Current Behavior
N/A
Expected Behavior
N/A
Steps to Reproduce
N/A