-
Notifications
You must be signed in to change notification settings - Fork 44
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
unexpected error: TypeError: Cannot read properties of undefined (reading 'locals') #82
Comments
Was literally about to open up an issue for this problem.
|
Seems like this is only an issue in the latest release. Uninstalling and installing v1.0.16 via
fixes the issue. Looks like there's been some changes to |
I've tracked down the issue to one of these 2 lines: Lines 588 to 589 in 81289c8
Seems like the srcSF or decsSF are Line 340 in 81289c8
|
Thank you for the report. The TypeScript compiler's watch mechanism changed in v4.9 (tslab: v1.0.18) and I think the change in TypeScript compiler is suspicous although I cannot reproduce the issue on Linux Node.js. @tiansivive Does this happen from which version of tslab? Do tslab v1.0.17 and v1.0.18 work in your environment? |
This happens on v1.0.19. I'll try to uninstall and downgrade and report back. Thanks. |
I can confirm that this issue does not happen on v1.0.16 using Node v18.16.0. Thanks for the help! Please close the ticket if appropriate. |
@yunabe oh, I didn't realise I skipped those versions. I tried them now and v1.0.17 works but not v1.0.18. For the record, I'm running a MacBook Pro on Monterrey (12.4) |
Rollback TypeScript to 4.6 because 4.9+ are broken in Mac (#82)
I enabled GitHub Actions to run continuous tests on Windows and MacOS. I confirmed tests are green in all operating systems with TypeScript 4.6 (https://github.com/yunabe/tslab/actions/runs/4954329573), but tests fail in the main branch with TypeScript 5 (https://github.com/yunabe/tslab/actions/runs/4953911999). |
The root cause of the problme was TypeScript changed the file normalization logic in environments with case-insensitive filesystems (e.g. Windows, MacOS). I implemeneted a workaround and released Could you try Thanks, |
After installing tslab according to the documentation on Mac Ventura 13.3.1 (Apple M1 Pro) and starting a notebook (does not matter if it's JavaScript or TypeScript), the following error is shown upon executing a cell (eg.
console.log('hello')
):It took a bit of a miracle to even install tslab, but here were the steps I took.
For NodeJS, I am using
nvm
v0.39.1. Thus, I can switch between the following 3 node versions.The error above happens only on v16 and v18 inside a notebook. On v14, I see nothing indicating an error in the notebook but it hangs and just keeps indicating some background processing is happening; when I look at the console from where I ran Jupyter Lab, I see the following message repeated over and over. I'm guessing v14 is not supported?
FWIW, here are some other information about my setup/environment using conda v23.3.1.
The text was updated successfully, but these errors were encountered: