Closed chouck-pthreemedia closed 4 months ago
@babel/types/lib/index.js:66, all definteProperty caused the error Cannot redefine property: internaldeprecationWarning The next several dozen defineProperty would throw the same error Temporary Solution: Downgrading Node.js to version v20.5.1 and rerunning the project resolved the issue, suggesting the problem is specific to version v20.6.0.
Let's check with release
cc @nodejs/releasers PTAL and advise
We should have a reproducible example. But, if you know this is working fine on v20.5.1. A git bisect
might be desirable.
Getting the following on 20.6.1 and newer. Forgive me as I am new to this.
│
│ Cannot redefine property: internaldeprecationWarning │
│ │
│ To investigate the issue, examine this stack trace: │
│ at defineProperty │
│ at
You should likely open an issue in babel or react native, that's not one of our errors.
It seems there has been no activity on this issue for a while, and it is being closed in 30 days. If you believe this issue should remain open, please leave a comment. If you need further assistance or have questions, you can also search for similar issues on Stack Overflow. Make sure to look at the README file for the most updated links.
You should likely open an issue in babel or react native, that's not one of our errors.
Closing
Details
I recently encountered issues while trying to run a project that relies on a stack of several packages. The application would not launch, and I was met with various errors related to
__internal__deprecationWarning
and other named exports not being found. After much troubleshooting, it seems these were caused by upgrading to Node v20.6.0.Expected Behavior: The project should build and run without issues.
Actual Behavior: Received errors related to
__internal__deprecationWarning
and named exports not being found in certain modules like@babel/types
.Temporary Solution: Downgrading Node.js to version v20.5.1 and rerunning the project resolved the issue, suggesting the problem is specific to version v20.6.0.
Node.js version
v20.6.0
Example code
@babel/types/lib/index.js:66
, alldefinteProperty
caused the errorThe first snippet looked like this:
and returned this error upon trying to launch with
npm run dev
:The next several dozen
defineProperty
would throw the same error.Operating system
macOS
Scope
Upon attempting to launch the hydrogen environment to continue developing.
Module and version
Not applicable.