[solved] Error: Cannot find module (on the client)

Hello,
I am experimenting to deploy my app on a windows server (we deploy on linux for many years without problem).

I build the app on a pc with windows for architecture windows then I send the bundle to the windows server.
I go to bundle/programs/server and do npm install
Everything works well
I can connect but I have an error in client code with imports and I don’t know what causes this.
Did I miss something during the build process ?

Thanks for your help

The problem is not only with import ____ from ___ but also import().then as seen on the screenshot.

If I look at the bundle, the file seems to be there (the path is slightly different)

Ok, ROOT_URL was set to localhost…
It seems better now

1 Like