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

Update react-refresh-webpack-plugin in Flight fixture #30156

Merged
merged 1 commit into from
Jul 1, 2024

Commits on Jul 1, 2024

  1. Update react-refresh-webpack-plugin in Flight fixture

    This fixes the following error when starting the Flight fixture with
    `yarn dev`:
    
    ```
    [1] ERROR in ./src/cjs/Counter3.js 1:0
    [1] Module parse failed: 'import' and 'export' may appear only with 'sourceType: module' (1:0)
    [1] File was processed with these loaders:
    [1]  * ./node_modules/@pmmmwh/react-refresh-webpack-plugin/loader/index.js
    [1]  * ./node_modules/babel-loader/lib/index.js
    [1]  * ./node_modules/source-map-loader/dist/cjs.js
    [1] You may need an additional loader to handle the result of these loaders.
    [1] > import * as __react_refresh_runtime__ from '/Users/hendrik/code/react/fixtures/flight/node_modules/react-refresh/runtime.js';
    [1] | __webpack_require__.$Refresh$.runtime = __react_refresh_runtime__;
    ```
    
    It avoids needing to run `FAST_REFRESH=false yarn dev` as a workaround.
    unstubbable committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    ec26dd9 View commit details
    Browse the repository at this point in the history