-
Notifications
You must be signed in to change notification settings - Fork 11
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
Cannot read property 'resolvedModules' of undefined when running tscc with Yarn 2 #464
Comments
This is definitely a Yarn 2 issue. Could you change the issue title to reflect this? Also, do you have any knowledge on internal working of yarn 2, such as, about what it does to JS execution environment and typescript package to make it work with its new module structures? I'd appreciate if someone having experiences with yarn 2, |
Thanks for confirming that it is indeed Yarn 2. It seems like Yarn 2 packs up the entire node_modules environment into zip files to reduce file size and the number of files. There is still a way to work with the "old" I'd love to be able to use tscc with Yarn 2, but I also only just switched to try it out on a single project, so I don't really know of how much help I can be. |
If anyone could provide a repo that can be cloned and run to test this I can look into it, if we're breaking something in TypeScript that definitely needs to be fixed on our side.
@Ririshi I highly suggest giving https://yarnpkg.com/getting-started/migration#step-by-step a read, it shows you can get the old
|
When trying to run
tscc
on my Node project, I am getting the following error:I've attached some info I think is relevant. I am using Yarn 2 (as you can probably see from the error trace). I am calling tscc using the
yarn build
command, defined inpackage.json
below.tsconfig.json
:tscc.spec.json
:Relevant info in
package.json
:The text was updated successfully, but these errors were encountered: