-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Regression: Cannot find module (for @babel/runtime/helpers/interopRequireDefault
)
#6192
Comments
Turns out that this links to #5683. 😬 That bug is basically the same, except in the meantime I've followed this advice. That seems to have solved the problem for Feel free to close this if it turns out the be exactly same issue regardless. Seeing as it's long enough that I've managed to lose track of older Parcel bugs I've filed and ended up retracing the same bisection, it would really help to have a better fix or at least a better error message. 🙏 |
Any recommendations for what to do about this issue? I've spent several hours trying to debug it, and I haven't found anything on our side to make it work. Would it be best for us to revert to an older Parcel nightly for the foreseeable future? |
A small reproduction for this error would be great.
Shared bundles are disabled in development because determining which assets to put in to shared bundles is neither parallelized nor cached. |
I'll try, but I haven't had good luck with this in the past. :-(
is it possible to turn this off for production so that we can deploy safely? |
|
I've almost got this down to a minimal repro: https://github.com/cubing/cubing.js/tree/parcel-6192 This is looking similar to #5118 (which is a bug for Parcel 1), but only triggered by bundle splitting in certain circumstances. |
Alright, I've reduced the repro to the following: // src/alg/index.ts
export class Alg {
readonly #repetition = null;
constructor() {
console.log(this.#repetition)
}
}
import "./bulky-code" // src/puzzle-geometry/index.ts
import { Alg } from "../alg";
class FaceNameSwizzler {
public prefixFree: boolean = true;
}
console.log(FaceNameSwizzler, Alg) // src/puzzles/index.ts
(async () => {
console.log(await import("../puzzle-geometry"));
})(); // src/demo/alg.cubing.net/index.ts
import "../../cubing/puzzle-geometry"; // src/demo/robot/logs/index.ts
import "../../../cubing/alg"; // src/demo/robot/index.ts
import "../../cubing/puzzles"; Note that this still follows the advice from #5683 (comment) : every Please let me know if it would help to try to pinpoint things further. So far, it seems both the private and public fields as well as the async import are "load-bearing" for this bug. EDIT: This has been moved to https://github.com/lgarron/parcel-6192/ |
Thanks for the suggestions!
We already have this enabled (to work around another bug, don't recall which one).
Unfortunately, that doesn't seem to work. :-( |
We could go back without too much trouble once parcel-bundler/parcel#6192 is fixed.
I've now moved this to https://github.com/lgarron/parcel-6192/ |
It seems to happen also without modern class features: https://github.com/mischnic/parcel-issue-6192 So indeed similar to #5683 |
With my repro,
|
🐛 bug report
Building our project with the latest Parcel nightly results in the following:
Per another portion of the build,
4ttVj
corresponds to:🎛 Configuration (.babelrc, package.json, cli command)
https://github.com/cubing/cubing.js/blob/45d61a4ed69d7e710c2b601a6e164a994619b449/package.json
Repro:
Note that this is an issue specifically with
parcel build
.parcel serve
handles the exact same page just fine:make dev open http://localhost:3333/twizzle/index.html?puzzle=3x3x3
🤔 Expected Behavior
The page loads and shows puzzles:
😯 Current Behavior
The page runs into the error documented above:
💁 Possible Solution
I've tracked this down to the range between nightly 481 and nightly 485:
a4cf3e9...8fdb958
Of those, I think 3f1935a looks like the most likely to have caused this.
🔦 Context
I upgraded our project to the latest Parcel nightly for some other bug fixes. I later found out this broke our production deployment.
💻 Code Sample
https://github.com/cubing/cubing.js
🌍 Your Environment
This happens across browsers.
The text was updated successfully, but these errors were encountered: