2 months ago
npm warn config production Use --omit=dev instead.
portillo-ceramic-and-tile@1.0.0 build
npm run build --workspace=client && npm run build --workspace=server
npm warn config production Use --omit=dev instead.
client@1.0.0 build
tsc && vite build
vite v6.4.3 building for production...
transforming...
✓ 101 modules transformed.
rendering chunks...
computing gzip size...
dist/index.html 1.94 kB │ gzip: 0.76 kB
dist/assets/index-FlMLSh-3.css 42.61 kB │ gzip: 7.87 kB
dist/assets/index-BL72dur1.js 437.06 kB │ gzip: 129.68 kB
✓ built in 1.46s
npm warn config production Use --omit=dev instead.
server@1.0.0 build
tsc
src/loadEnv.ts(5,54): error TS1343: The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', or 'nodenext'.
npm error Lifecycle script build failed with error:
npm error code 2
npm error path /app/server
npm error workspace server@1.0.0
npm error location /app/server
npm error command failed
npm error command sh -c tsc
Build Failed: build daemon returned an error < failed to solve: process "npm run build" did not complete successfully: exit code: 2 >
15 Replies
2 months ago
This thread has been opened as a bounty so the community can help solve it.
Status changed to Open Railway • about 2 months ago
2 months ago
Try setting the module to one of those specified options in your tsconfig.json.
2 months ago
I did, i changed it to "esnext", "es2020", "Node20" still getting the same error.
aportillo
I did, i changed it to "esnext", "es2020", "Node20" still getting the same error.
2 months ago
Ensure you updated the tsconfig.json located inside your server directory (/app/server/tsconfig.json), not the root tsconfig.json (assuming this is a monorepo).
2 months ago
i found the file, what editor can i use, when I try to edit with nano emacs vi vim on the server, it says its not found.
2 months ago
You should be editing the file locally, not on the deployment server.
aportillo
i found the file, what editor can i use, when I try to edit with nano emacs vi vim on the server, it says its not found.
2 months ago
You can use VSCode instead, and open up the project (it's just an easier approach).
2 months ago
form some reason in settings the repo is disconnected-- i dont think its pulling when i deploy
2 months ago
Try to relink the github repo again. If that doesn't work, you can create a new service and link it to your repo.
2 months ago
there seems to be an issue on the railway web app; when i connect repo it still stays on the same state, says add repo it doesnt show the repo selected.
2 months ago
im getting this error Type validation failed: Value: {"type":"web_fetch_tool_result_error","errorCode":"url_not_in_prior_context"}. Error message: [ { "code": "invalid_value", "values": [ "web_fetch_result" ], "path": [ "type" ], "message": "Invalid input: expected "web_fetch_result"" }, { "expected": "string", "code": "invalid_type", "path": [ "url" ], "message": "Invalid input: expected string, received undefined" }, { "expected": "object", "code": "invalid_type", "path": [ "content" ], "message": "Invalid input: expected object, received undefined" }, { "expected": "string", "code": "invalid_type", "path": [ "retrievedAt" ], "message": "Invalid input: expected string, received undefined" } ]
2 months ago
when I select a repo it comes back to this page above and doesnt show the selected repo
2 months ago
Have you tried creating a new service and linking it to the github repo?
a month ago
i did still the same; i was wondering if there is an issue with github or the service.