Next.js Discord

Discord Forum

importing a module from the frontend not working

Unanswered
Cape lion posted this in #help-forum
Open in Discord
Cape lionOP
So ive spent a ton of time trying to figure this out but in my project I have a function that essentially imports a module then returns it which I copied from my Vite project, however for some reason Import seems to behave differently on NextJS and it says it cant find the module when the module can be fetched just fine. I dont know that much about NextJS since im primarily a normal typescript developer. any guidence would be appriciated

1 Reply

Cape lionOP
Heres the code by the way