-
-
Notifications
You must be signed in to change notification settings - Fork 431
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
Strange behavior with Project References on #997
Comments
Could you provide a minimal reproduction repo please? |
@johnnyreilly @andrewbranch I can create a private repo and add you there if this would work. |
In fact, I was able to make it clean enough to be public: https://github.com/kirill-konshin/wmc-ts-bug $ npm install
$ cd storybook
$ npm start Which consistently results in
Then Then again: $ npm start This time it will work just fine. It looks like In order to clean everything up use |
Thanks @kirill-konshin! |
Any luck so far @johnnyreilly ? |
I'm not looking at this myself I'm afraid - completely snowed. It's possible it may be resolved by @sheetalkamat's work on #1003 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Activity! |
Do you know anything about this @andrewbranch? I haven't looked at this at all I'm afraid.. |
I filed a similar bug a while ago: #1005 and I'm just now getting back to trying to implement project references again. As you state the first build fails but still produces the referenced projects definition files. Thats why the second build succeeds because those definition files are available at the onset of the compilation the second time around. It seems like a race condition or caching issue on ts-loader's part since the project references work just fine using |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
For the community the stale bots and friends are the worst thing ever :/ |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Let's notify everyone just for fun and stale bot. Do you like it, do you? I don't know why @johnnyreilly think that stale bot is a good idea. |
I’ve pinned it to keep the bot from marking it as stale again. Keep in mind that ts-loader is maintained in the spare time of folks who have full-time jobs, and for many years, that has overwhelmingly been @johnnyreilly. I can’t speak for him, but I don’t currently don’t have the time or energy to devote to this issue. I understand your frustration, but, I’d wager that any tool that lets @johnnyreilly volunteer his time to this project without it taking over his life and becoming unmanageable is a net win for the community. Expressing your frustration is ok, and it’s useful to know people still care about this issue. I’d just also remind you that a) it’s not anybody’s job to do this, and b) it can be anybody’s job to do this—it’s open source, and if you open a PR, I would make time to review it 🙂 |
Don't get me wrong. It was sarcastic. I'm not frustrated about no movement in this issue. But I'm very frustrated about stale bot virus in open source space. I bored to say "I'm interested to leave this issue open" and spam every subscriber or be spammed from other people who comment issues just to let it alive. From my point of view, there is no point to have stale bot - close issue or let it open. But please, stop this virus. But, well, thanks for pinning the issue. |
This seems to have been fixed by PR #1136 by @sheetalkamat. This was to fix #1114 which had the same symptoms you reported. Your repo does not seem to have the symlinks present in #1114, which were reported to be causing the issue. However, the changes made to fix that issue may have also fixed yours. I cloned your wmc-ts-bug repo, upgraded ts-loader to 8.0.0 and typescript to 3.9.3. It then builds and runs without error. |
Fantastic! Thanks for investigating @appzuka! Sounds like we can close this then. |
I have a project where I'm using
[email protected]
withprojectReferences: true
and followingtsconfig
:The project is a lerna monorepository.
On first build I get error that
web-modules-core
can't be resolved. Even thoughweb-modules-core
package (located in../core
) builds itself during the startup.If I stop webpack and start it again it succeeds...
The text was updated successfully, but these errors were encountered: