You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some circumstances I get the following error during project build:
🚨 Build failed.
Error: The expression evaluated to a falsy value:
(0, _assert().default)(internalBundleGraph != null)
AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:
(0, _assert().default)(internalBundleGraph != null)
at BundlerRunner.bundle (/Users/poky85/projects/webapp/node_modules/@parcel/core/lib/requests/BundleGraphRequest.js:318:29)
at async Object.run (/Users/poky85/projects/webapp/node_modules/@parcel/core/lib/requests/BundleGraphRequest.js:129:17)
at async RequestTracker.runRequest (/Users/poky85/projects/webapp/node_modules/@parcel/core/lib/RequestTracker.js:673:20)
at async Object.run (/Users/poky85/projects/webapp/node_modules/@parcel/core/lib/requests/ParcelBuildRequest.js:52:7)
at async RequestTracker.runRequest (/Users/poky85/projects/webapp/node_modules/@parcel/core/lib/RequestTracker.js:673:20)
at async Parcel._build (/Users/poky85/projects/webapp/node_modules/@parcel/core/lib/Parcel.js:336:11)
at async Parcel.run (/Users/poky85/projects/webapp/node_modules/@parcel/core/lib/Parcel.js:205:18)
at async run (/Users/poky85/projects/webapp/node_modules/parcel/lib/cli.js:305:7)
This is similar to #8716 (comment) But I believe that this is not duplicate.
Build should not fail or give me instructive error. This error contains no module's path, dump of code etc. It's very hard to debug it in the large codebase.
😯 Current Behavior
Development server runs just fine. It fails during build.
🔦 Context
I'm updating my project from Parcel 2.7 do latest Parcel 2.12. Project build fails in 2.12 while it builds successfully in 2.7. No change in Parcel configuration has been made. I've updated all Parcel related modules (except for parcel-transformer-ts-css-modules transformer which I removed to check that issues is not caused by non-updated transformer).
In project I use:
latest Typescript
dynamic imports in Typescript
LESS and both CSS modules and non-module CSS
most of libraries are up-to-date
Babel is used only for some i18n transformations (format.js) and in test environment (Jest)
💻 Code Sample
I'm happy to investigate this further and I would appreciate any clues that will help me to create minimal reproduction example. It's really hard to find root of cause in large code base. I've already spent several hours on eliminating issues reported before.
🐛 bug report
In some circumstances I get the following error during project build:
This is similar to #8716 (comment) But I believe that this is not duplicate.
🎛 Configuration (.babelrc, package.json, cli command)
.parcel.rc
CLI command
package.json
babel.config.json
🤔 Expected Behavior
Build should not fail or give me instructive error. This error contains no module's path, dump of code etc. It's very hard to debug it in the large codebase.
😯 Current Behavior
Development server runs just fine. It fails during build.
🔦 Context
I'm updating my project from Parcel 2.7 do latest Parcel 2.12. Project build fails in 2.12 while it builds successfully in 2.7. No change in Parcel configuration has been made. I've updated all Parcel related modules (except for
parcel-transformer-ts-css-modules
transformer which I removed to check that issues is not caused by non-updated transformer).In project I use:
💻 Code Sample
I'm happy to investigate this further and I would appreciate any clues that will help me to create minimal reproduction example. It's really hard to find root of cause in large code base. I've already spent several hours on eliminating issues reported before.
What I've tried so far:
composes: className;
LESS rules () – no success..parcelrc
configuration:@parcel/reporter-bundle-analyze
,@parcel/reporter-cli
)🌍 Your Environment
The text was updated successfully, but these errors were encountered: