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

Invalid ForkTsCheckerWebpackPlugin configuration object #44

Closed
hirikarate opened this issue Dec 15, 2021 · 2 comments
Closed

Invalid ForkTsCheckerWebpackPlugin configuration object #44

hirikarate opened this issue Dec 15, 2021 · 2 comments

Comments

@hirikarate
Copy link

I'm using

  • "react-scripts": "5.0.0"
  • "react-app-rewire-alias": "1.1.5",
  • "react-app-rewired": "2.1.8"

and encountering this error:

Invalid configuration object. ForkTsCheckerWebpackPlugin has been initialized using a configuration object that does not match the API schema.
 - configuration has an unknown property 'compilerOptions'. These properties are valid:
   object { async?, typescript?, eslint?, formatter?, issue?, logger? }

I believe the problem is at aliasDangerous.js#L98 where the invalid property compilerOptions is added.

const options = {...opts, compilerOptions}

I tried modifying the source code locally and this version works:

const options = {
   ...opts,
   typescript: {
      ...opts.typescript,
      configOverwrite: compilerOptions,
   }
}

If you think this fix is reasonable, please apply it.

@oklas
Copy link
Owner

oklas commented Dec 17, 2021

This is released 1.1.6, you can check

@oklas oklas closed this as completed Dec 20, 2021
oklas added a commit that referenced this issue Mar 28, 2022
@oklas
Copy link
Owner

oklas commented Mar 28, 2022

Previous implementation has been added for compatibility.

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

2 participants