nixpacks build error

=> ERROR [ 9/10] RUN dotnet publish --no-restore -c Release -o out 6.2s
------
> [ 9/10] RUN dotnet publish --no-restore -c Release -o out:
#13 1.291 MSBuild version 17.3.2+561848881 for .NET
#13 5.502 ticketing-system -> /app/bin/Release/net6.0/ticketing-system.dll
#13 5.530 v18.12.1
#13 5.533 Restoring dependencies using 'npm'. This may take several minutes...
#13 5.929
#13 5.929 > [email protected] build
#13 5.929 > tsc && vite build
#13 5.929
#13 5.997 node:internal/modules/cjs/loader:998
#13 5.997 throw err;
#13 5.997 ^
#13 5.997
#13 6.032 EXEC : error : Cannot find module '/app/ClientApp/node_modules/typescript/bin/tsc' [/app/ticketing-system.csproj]
#13 6.032 at Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
#13 6.032 at Module._load (node:internal/modules/cjs/loader:841:27)
#13 6.032 at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
#13 6.032 at node:internal/main/run_main_module:23:47 {
#13 6.032 code: 'MODULE_NOT_FOUND',
#13 6.032 requireStack: []
#13 6.032 }
#13 6.032
#13 6.032 Node.js v18.12.1
#13 6.032 /app/ticketing-system.csproj(57,3): error MSB3073: The command "npm run build" exited with code 1.
------
=> ERROR [ 9/10] RUN dotnet publish --no-restore -c Release -o out 6.2s
------
> [ 9/10] RUN dotnet publish --no-restore -c Release -o out:
#13 1.291 MSBuild version 17.3.2+561848881 for .NET
#13 5.502 ticketing-system -> /app/bin/Release/net6.0/ticketing-system.dll
#13 5.530 v18.12.1
#13 5.533 Restoring dependencies using 'npm'. This may take several minutes...
#13 5.929
#13 5.929 > [email protected] build
#13 5.929 > tsc && vite build
#13 5.929
#13 5.997 node:internal/modules/cjs/loader:998
#13 5.997 throw err;
#13 5.997 ^
#13 5.997
#13 6.032 EXEC : error : Cannot find module '/app/ClientApp/node_modules/typescript/bin/tsc' [/app/ticketing-system.csproj]
#13 6.032 at Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
#13 6.032 at Module._load (node:internal/modules/cjs/loader:841:27)
#13 6.032 at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
#13 6.032 at node:internal/main/run_main_module:23:47 {
#13 6.032 code: 'MODULE_NOT_FOUND',
#13 6.032 requireStack: []
#13 6.032 }
#13 6.032
#13 6.032 Node.js v18.12.1
#13 6.032 /app/ticketing-system.csproj(57,3): error MSB3073: The command "npm run build" exited with code 1.
------
I am trying to build a dotnet project but in step 9 I get this error and I am not sure how to fix it. My understanding is that it maybe because I have typescript globally installed in my local machine? Let me know if I need to give more error outputs. Thank you
3 Replies
Percy
Percy2y ago
Please provide your project ID or reply with N/A. Thread will automatically be closed if no reply is received within 10 minutes. You can copy your project's id by pressing Ctrl/Cmd + K -> Copy Project ID.
Percy
Percy2y ago
It appears that the error is caused by a regression introduced in the rust tool chain file, and can be fixed by removing the rust tool chain file.
⚠️ experimental feature
Percy
Percy2y ago
No project ID was provided. Closing thread.
Want results from more Discord servers?
Add your server