I am posting this to let people know how to solve this issue just in case they run into it.
When using NEXTjs as a front-end for your Tauri application, you cannot use the @tauri-apps/api/path module as a static
import for use in any of your react components.
The reason for this based on the error messages I was getting is due to the fact that the navigator object (which is part of the window object in browsers), is not available during the SSG (Static Site Generation) process while NEXTjs is building. So during build time, the following error is thrown.