Skip to content

transformer-babel error: Unknown option: .showIgnoredFiles (Nightly 598) #5879

Closed
@ittaibaratz

Description

🐛 bug report

With nightly 598, our build fails right away on the following error:

@parcel/transformer-babel: Unknown option: .showIgnoredFiles. Check out https://babeljs.io/docs/en/babel-core/#options for more information about options. auxiliaryComment,blacklist,breakConfig,experimental,externalHelpers,extra,jsxPragma,loose,metadataUsedHelpers,modules,nonStandard,optional,sourceMapName,stage,whitelist,resolveModuleSource,metadata,sourceMapTarget
Error: Unknown option: .showIgnoredFiles. Check out https://babeljs.io/docs/en/babel-core/#options for more information about options. auxiliaryComment,blacklist,breakConfig,experimental,externalHelpers,extra,jsxPragma,loose,metadataUsedHelpers,modules,nonStandard,optional,sourceMapName,stage,whitelist,resolveModuleSource,metadata,sourceMapTarget
    at throwUnknownError (/Users/ittai/Documents/GitHub/unified-shell/node_modules/@parcel/transformer-babel/node_modules/@babel/core/lib/config/validation/options.js:123:27)
    at /Users/ittai/Documents/GitHub/unified-shell/node_modules/@parcel/transformer-babel/node_modules/@babel/core/lib/config/validation/options.js:108:5
    at Array.forEach (<anonymous>)
    at validateNested (/Users/ittai/Documents/GitHub/unified-shell/node_modules/@parcel/transformer-babel/node_modules/@babel/core/lib/config/validation/options.js:84:21)
    at validate (/Users/ittai/Documents/GitHub/unified-shell/node_modules/@parcel/transformer-babel/node_modules/@babel/core/lib/config/validation/options.js:75:10)
    at loadPrivatePartialConfig (/Users/ittai/Documents/GitHub/unified-shell/node_modules/@parcel/transformer-babel/node_modules/@babel/core/lib/config/partial.js:76:50)
    at loadPrivatePartialConfig.next (<anonymous>)
    at Object.<anonymous> (/Users/ittai/Documents/GitHub/unified-shell/node_modules/@parcel/transformer-babel/node_modules/@babel/core/lib/config/partial.js:120:25)
    at Generator.next (<anonymous>)
    at step (/Users/ittai/Documents/GitHub/unified-shell/node_modules/gensync/index.js:254:32)

Not sure where the error is coming from, but I can see shoeIgnoredFiles on the Babel website. Note this issue was not happening with Nightly 577 where we could build fine.

Also, prior to this issue, I ran into #5854 (Which also did not happen with nightly 577) and so I added these packages in the monorepo root package.json to overcome and disabled auto install:

    "@parcel/transformer-posthtml": "^2.0.0-nightly.600",
    "@parcel/transformer-html": "^2.0.0-nightly.600",
    "@parcel/packager-html": "^2.0.0-nightly.600"

Also tried adding @parcel/transformer-babel but it didn't make a difference.

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

Babel:

module.exports = function (api) {
  api.cache(true);

  return {
    presets: [
      [
        '@babel/preset-env',
        {
          bugfixes: true,
          corejs: 2,
          useBuiltIns: 'entry'
        }
      ],
      '@babel/preset-react',
      '@babel/preset-typescript'
    ],
    plugins: [
      '@babel/plugin-proposal-class-properties',
      ["@babel/plugin-proposal-decorators", {decoratorsBeforeExport: true}]
    ]
  }
};

🤔 Expected Behavior

Build should be successful.

😯 Current Behavior

Build fails almost immediatelly.

💁 Possible Solution

🔦 Context

💻 Code Sample

I can provide access to @devongovett (Same company). Can also try to do a minimal reproduction if required.

🌍 Your Environment

Software Version(s)
Parcel 2.0.0 nightly 598
Node 14/15 (latest)
npm/Yarn latest
Operating System CentOS / Mac OS

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions