Skip to content

Commit

Permalink
minor #1346 Fix method name (Kocal)
Browse files Browse the repository at this point in the history
This PR was merged into the main branch.

Discussion
----------

Fix method name

| Q             | A
| ------------- | ---
| Bug fix?      | yes/no
| New feature?  | yes/no <!-- please update CHANGELOG.md file -->
| Deprecations? | yes/no <!-- please update CHANGELOG.md file -->
| Issues        | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exists, explain below instead -->
| License       | MIT

<!--
Replace this notice by a description of your feature/bugfix.
This will help reviewers and should be a good start for the documentation.

Additionally (see https://symfony.com/releases):
 - Always add tests and ensure they pass.
 - Features and deprecations must be submitted against the latest branch.
 - For new features, provide some code snippets to help understand usage.
 - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry
 - Never break backward compatibility.
-->

Commits
-------

93dee6f Fix method name
  • Loading branch information
Kocal committed Sep 26, 2024
2 parents 0443f47 + 93dee6f commit 060a6e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/WebpackConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ class WebpackConfig {
*/
enableReactPreset(callback = () => {}) {
if (typeof callback !== 'function') {
throw new Error('Argument 1 to enableForkedTypeScriptTypesChecking() must be a callback function.');
throw new Error('Argument 1 to enableReactPreset() must be a callback function.');
}

this.useReact = true;
Expand Down

0 comments on commit 060a6e9

Please # to comment.