Can't compile TypeScript project
For some odd reason I can't compile my TS project on Railway...
It just fails everytime with a bunch of type errors from
node_modules
even though that folder is in my exclude
in my tsconfig...
I tried with Rollup at first and gave up as I thought it was the problem - turns out it is not after trying with tsc
and that also fails...
Both images show the problem and I don't know what to do anymore...
It compiles just fine locally18 Replies
Project ID:
N/A
Those are linting errors, you can choose to fix them or you can disable them by setting
CI
to false
in your service variablesN/A
oh?
I assume that would in the settings somewhere or do I need to look at the docs for that?
You can click on your service and it'll open up a little window
in the window you'll see a
Variables
tab, this is where you can add Service Variables
you can then add a service variable with the name CI
set to false
to disable linting errorsBut my initial thought is, why would it ever think to lint inside of
node_modules
when I have set that to be excluded in my tsconfigTrue, mind sending your full logs?
I kinda just guessed based on the images but it's probably better if I investigate fully
you can download your logs using this tool: https://bookmarklets.up.railway.app/log-downloader/
Let me also send from when I used Rollup
This is the when I used Rollup
For reference my tsconfig looks like this
Yes I know the exclude can just be
node_modules
and not node_modules/**/*
Just tried a bunch of things to see how it would fairmind sending me your package.json?
yeah 1 sec
Solution
could you try using an up-to-date version of typescript?
Will try
huh that worked
weird
well thank you!
No problem 🙂
Can't mark your answer as the fix
so yeah
ty brody