-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Import broken since v1.0.0/6c210101a283d4fe46bdcf14d33bcdd6317a09ff #3
Comments
Hello again! So as of v1.0.0
Back to your error: what's happening is your tooling is transpiling your TypeScript to CJS and the CJS tries to The solution would be either:
I hope that helps! Let me know if that solves your issue |
Thank you very much for the detailed help! :-) However, I've unfortunately not yet managed to get it running. Until now I have considered the following approaches:
I'm a bit exhausted. :-) Do you maybe have any further idea for me, or do you have a guess which actor is to blame here so I could create an issue in their repository? Thanks in advance! |
|
Wow, thank you so very much for your help and explanations in the other thread, Tomer! Regarding your PR (which I needed to move to LinqLover/downstream-repository-mining#41 to resolve merge conflicts): I actually have no clue why the CI is still not running, but if I try it out locally ( Do you see real any danger in using the preview versions for jest? Otherwise, I will merge your PR gladly! |
No problem 😄
The CI isn't running because you only have your CI set up to run on "push". Although I "pushed" my changes, it wasn't to your repository; it was to my fork (and forks don't run GitHub actions by default I think). I think you have to configure your CI to run on "pull_request" as well (see my
I don't think there's any danger in using the preview versions. I assume this isn't a "production" project (yet!) so all it really means is that you may have to modify your configuration again if they decide to change something before releasing the next stable version. I also think that in general it's good for people (like you) to try out all this ESM stuff because if we don't actively push it, then the tooling isn't gonna move to support it |
Alright, thank you again so much! 🙏
True point.
Yeah, I wanted to eliminate the duplicate runs ... I had assumed that GitHub Actions would be turned on by default for forks. |
Bump parse-imports by @TomerAberbach Closes TomerAberbach/parse-imports#3.
Hey @TomerAberbach, sorry for disturbing your peace of mind again. :-) In the last weeks, I have noticed a number of failing builds in my repository which actually turned out to be flaky tests. Whenever the build fails, I see something like this: $ yarn test --verbose=true --silent=false test/references.test.ts
yarn run v1.22.10
$ cross-env NODE_OPTIONS=--experimental-vm-modules jest --verbose=true --silent=false test/references.test.ts
(node:42760) ExperimentalWarning: VM Modules is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
RUNS test/references.test.ts
error Command failed with exit code 1. (The yarn install && yarn test --clearCache && yarn test test/references.test.ts -i --verbose=true --silent=false && (set -e ; for run in {1..100}; do echo "ATTEMPT $run" && yarn test --verbose=true --silent=false test/references.test.ts || exit 1; done && echo good) I already was able to reduce the failure ratio from ~1/2 to ~1/40 by reducing the number of dynamic imports (see LinqLover/downstream-repository-mining@472d90f), but it is still awful to work with unreliable tests. I also have opened jestjs/jest#11601, but I'm not sure if they will be able to help me. |
Hey! Sorry for the late reply; I was moving! Yeah, I'm not really sure what's going on there. It seems like it could be a Jest issue as you suggested. |
Original failure in my project: Bump parse-imports from 0.0.5 to 1.0.0 LinqLover/downstream-repository-mining#37:
Minimal example to reproduce: https://github.com/LinqLover/parse-imports-example/pull/1
Note that in both cases, the CI passes when I downgrade to
v0.0.5
again. What's happening here? How can I keep using your package after you have upgraded it to ESM?The text was updated successfully, but these errors were encountered: