Hello, I wanted to report an issue we encountered while updating our project. It was very difficult for us to understand the problem. I think the error messages need to be improved. In fact, it should be specified that this devOnly flag represents a “Breaking Changes” level modification.
When we updated from version 3.2.2 to 3.4, the project ran locally, but when we tried to build it, we received the following error.
Node.js v22.22.0
Connecting to MongoDB...
Successfully connected to MongoDB
Starting app...
packages/core-runtime.js:189
throw error;
^
TypeError: Cannot read properties of undefined (reading 'Babel')
at /opt/bundle/bundle/programs/server/app/app.js:10:35
at processNext (packages/core-runtime.js:127:30)
at packages/core-runtime.js:138:5
at evaluateNextModule (packages/core-runtime.js:163:14)
at evaluateNextModule (packages/core-runtime.js:202:7)
at runEagerModules (packages/core-runtime.js:206:3)
at processNext (packages/core-runtime.js:128:3)
at packages/core-runtime.js:138:5
at runEagerModules (packages/core-runtime.js:144:12)
... collapsed 3 duplicate lines matching above lines ...
at processNext (packages/core-runtime.js:128:3)
at packages/core-runtime.js:138:5
at evaluateNextModule (packages/core-runtime.js:163:14)
at evaluateNextModule (packages/core-runtime.js:202:7)
However, I realized the cause of the error when the devOnly flag was added. Then I noticed that there was still an ecmascript package depending on the missing babel package. Since it’s ecmascript, a Babel import is added to app.js. This made it very difficult for us to identify the issue. I’m writing this in case others encounter the same problem. Thanks ![]()
As a simple suggestion, I think a warning should be displayed during the build process.