#NPM build failed

20 messages · Page 1 of 1 (latest)

sharp meteor
#

#13 13.25 Failed to compile.
#13 13.25
#13 13.25 Module not found: Error: Can't resolve '../../service/LeagueService' in '/app/src/components/MainMenu'

Someone knows why my app builds localy but remote doesnt?
Imo it's related to copying this to app or something but idk

sour capeBOT
#

Project ID: 28562ebb-aba7-4de1-b52f-dfec8602d0ab

#

It looks like the issue is that the resource is busy or locked, and the log can be found in /root/.npm/_logs/2023-01-28T15_22_08_318Z-debug-0.log.

sharp meteor
#

28562ebb-aba7-4de1-b52f-dfec8602d0ab

hybrid coral
#

Need more information Bout your project. Clearly it cannot resolve the module be no way to tell why

#

Looks like the path take you out of the src dir. Maybe that's the issue?

sharp meteor
#

And locally success

hybrid coral
#

Oh , Is this an spa? Mind sharing the table at the top of your build logs

sharp meteor
#

this one?

hybrid coral
#

What command do you use to build it locally?

sharp meteor
#

also npm run build 😐

hybrid coral
#

And if this is a spa you will need to use the NIXPACKS provider

#

Sorry

#

The nginx provider

#

I can't work out why It won't work other than your importing a TS file into a js file ( idk if that works ) it might do

#

Side note I would advise agaisnt capital letters in your file names otherwise you might run into this issue again depending on your os ( Linux cares about casing )

sharp meteor
sharp meteor