Build Error: three fails to build
Package name
https://bundlephobia.com/package/three
Entire (stringified) error that I see in my browser console
"Failed to build this package."
I suspect it is because we tried using private class fields.
More info: https://github.com/mrdoob/three.js/issues/22437
I suspect it is because we tried using private class fields.
Highly likely. The gist of it is that bundlephobia compiles your code with Webpack 4 which is using an older version of acorn that cannot parse the newer JavaScript syntaxes (nullish coalescing, optional chaining, top-level await and export ns from...).
In this case, bundlephobia tools will need an upgrade. See: https://github.com/pastelsky/bundlephobia/issues/413#issuecomment-829240176
This issue can be closed, it was fixed as mentioned here