Skip to content
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

Parcel build fails with no error #9996

Open
LukeTOBrien opened this issue Nov 3, 2024 · 0 comments
Open

Parcel build fails with no error #9996

LukeTOBrien opened this issue Nov 3, 2024 · 0 comments

Comments

@LukeTOBrien
Copy link

🐛 bug report

Parcel build is failing with no errors, if you look at the screenshot below you can see that the last stage the build process got to was Building runtime-b26d016a60e99e5f.js....

When I add --log-level verbose, then I can see tree-shaking warnings but no error.
The warnings point to the docs which mention 'bail outs' but I don't think this is the kind of bail out the docs are talking about.

image

Does anyone know what could be causing this issue?

🎛 Configuration (.babelrc, package.json, cli command)

package.json

{
   ...
"targets": {
        "default": {
            "distDir": "./dist",
            "sourceMap": false,
            "context": "browser",
            "outputFormat": "global"
        }
    }
...
}

tsconfig

{
    "compilerOptions": {
        "module": "commonjs",
        "noImplicitAny": false,
        "removeComments": true,
        "preserveConstEnums": true,
        "sourceMap": true,
        "esModuleInterop": true,
        "target": "ES2020",
        "experimentalDecorators": true,
        "useDefineForClassFields": false
    }
}

.parcelrc

{
  "extends": "@parcel/config-default",
  "transformers": {
    "*.{ts,tsx}": ["@parcel/transformer-typescript-tsc"]
  }
}

.terserrc

{
    "compress": {
        "hoist_props": false
    },
    "mangle" : {
        "reserved" : [ "$", "L" ],
        "keep_fnames": true
    },
    "format": {
        "ascii_only": true
    }
}

🤔 Expected Behavior

Just work.

🌍 Your Environment

Software Version(s)
Parcel "^2.12.0"
Node 22.8.0
npm/Yarn [email protected]
Operating System Windows 11
TypeScript "^5.6.2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant