-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Framework Build - Typescript Error #3053
Comments
I had a quick chat to @cjreimer about this on Discord. I'm running into this issue as well on Windows. But it doesn't seem to happen as often to me as it does him. What works for me is to run |
Not sure if this is relevant, but dropping it here for someone with a better understanding to take a look. The error message is very similar. If the issue above is relevant, this issue might be solved by this nonara/ts-patch#40 |
It didn't work for me, so I tried something a little more radical, and it's work for me : It's think the problem come from an old typescript definition inside something with .gitinore. |
Update:
I believe I need to run the I have also played with the following:
but with mixed success. It might just be a fluke that it worked in some cases. |
@cannikin had this happen to him as well, so not a Windows (only) issue |
I'm wondering if the In order to test: redwood/tasks/framework-tools/src/lib/framework.mjs Lines 145 to 153 in ecf8aa9
Modify this to run
|
I was trying to help @alicelovescake debug her local build and we are both experiencing the same issue (both on Mac). @peterp I may misunderstood what you meant above but I basically replaced the following: redwood/tasks/framework-tools/src/lib/framework.mjs Lines 145 to 153 in ecf8aa9
with: execa.sync('yarn build:js', {
shell: true,
stdio: 'inherit',
cwd: path.resolve(__dirname, '../../'),
})
execa.sync('yarn build:types', {
shell: true,
stdio: 'inherit',
cwd: path.resolve(__dirname, '../../'),
}) to no avail. 😓 |
The issue here is that the ttsc package we use to build types (and then rebuild) has a bug with the latest typescript version. The resulting behavior is that re-building can often fail. See @Tobbe link above #3053 (comment) @jtoar has proposed two proposed solutions:
If you want to keep using |
@thedavidprice thanks for sharing those, currently relying on manually running One thing to note: I also see the build error when running |
Ah, that makes sense as it's the same ttsc usage. But is it also blocking the re-build? I've not had these problems myself, so it's been unclear to me where/when it's occuring. |
Hello,
I'm having trouble building the framework as soon as I touch a typescript file. I've tried touching files in both the internal and web packages and get the same issue. The error I get is:
Thinking my framework was corrupted, I've tried blowing away the framework and recloning. The framework builds from a fresh install, but the build fails as soon as I touch a typescript file.
Note, I am on Windows.
The text was updated successfully, but these errors were encountered: