GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Webpack tries to import a chunk that does not exist · Issue #16040 · webpack/webpack

Webpack tries to import a chunk that does not exist #16040

New issue
Copy link
New issue
Copy link
Closed
#16809
Closed
Webpack tries to import a chunk that does not exist#16040
#16809
Copy link
Labels
help wantedMaintainers welcome a community PR for thiswebpack-5Concerns the webpack 5 line

Description

@hronro
hronro
opened on Jul 12, 2022
Issue body actions

Bug report

What is the current behavior?
Webpack is trying to import a chunk that does not exsit.

If the current behavior is a bug, please provide the steps to reproduce.

I have prepare a repo for reproducing it:

  • Clone https://github.com/hronro/webpack-chunk-issue
  • Run pnpm i && pnpm build
  • Check dist/main.c1ecce6e.js. In the bottom of the file, it contains something like this:
import * as __webpack_chunk_0__ from "./style.e9792867.js";

However, style.e9792867.js does not exsit.

What is the expected behavior?
Webpack should not import that unexist file.

Other relevant information:
webpack version: 5.73.0
Node.js version: 18.5.0
Operating System: macOS
Additional tools: PNPM

Activity

  1. alexander-akait commented on Jul 12, 2022

    @alexander-akait
    alexander-akait
    on Jul 12, 2022
    Member
    More actions

    Bug, thanks you for the report

  2. alexander-akait
    added
    bug
    webpack-5Concerns the webpack 5 line
    on Jul 12, 2022
  3. Sagargajare commented on Jul 14, 2022

    @Sagargajare
    Sagargajare
    on Jul 14, 2022
    More actions

    @alexander-akait

    import * as __webpack_chunk_0__ from "./style.e9792867.js";
    

    Can we fix it by removing this line of code?

  4. alexander-akait commented on Jul 14, 2022

    @alexander-akait
    alexander-akait
    on Jul 14, 2022
    Member
    More actions

    We should not generate them, something wrong in graph...

  5. sokra commented on Jul 25, 2022

    @sokra
    sokra
    on Jul 25, 2022
    Member
    More actions

    Bug in experiments.outputModule. It should not add imports for chunks that do not contain JS. Usually it checks for that in many places, but seems like it was missed here. Send a PR

  6. webpack-bot
    added
    help wantedMaintainers welcome a community PR for this
    on Jul 25, 2022
  7. Gautam-Arora24 commented on Jul 30, 2022

    @Gautam-Arora24
    Gautam-Arora24
    on Jul 30, 2022
    More actions

    Can I work on this issue?

  8. snitin315 commented on Jul 30, 2022

    @snitin315
    snitin315
    on Jul 30, 2022
    Contributor
    More actions

    @Gautam-Arora24 yes, feel free.

  9. Gautam-Arora24 commented on Jul 31, 2022

    @Gautam-Arora24
    Gautam-Arora24
    on Jul 31, 2022
    More actions

    Can anyone help me by giving some leads as to where/how to solve this issue? This is my first time contributing to webpack.

  10. AnmolBansalDEV commented on Aug 6, 2022

    @AnmolBansalDEV
    AnmolBansalDEV
    on Aug 6, 2022
    Contributor
    More actions

    hey, where to find experiments.outputModule file?

  11. ScriptedAlchemy commented on Aug 13, 2022

    @ScriptedAlchemy
    ScriptedAlchemy
    on Aug 13, 2022
    Contributor
    More actions

    It’s in the ESM directory. There’s a series of plugins there. You can also see what plugins are applied when by looking at the applyOptions file. It takes the config and translates it to plugins applied to compiler.

  12. webpack-bot commented on Nov 12, 2022

    @webpack-bot
    webpack-bot
    on Nov 12, 2022
    Contributor
    More actions

    This issue had no activity for at least three months.

    It's subject to automatic issue closing if there is no activity in the next 15 days.

  13. webpack-bot
    added
    status: staleNo author response after a needs: request; close candidate
    on Nov 12, 2022
  14. hronro commented on Nov 12, 2022

    @hronro
    hronro
    on Nov 12, 2022
    Author
    More actions

    active

  15. webpack-bot
    removed
    status: staleNo author response after a needs: request; close candidate
    on Nov 12, 2022
  16. webpack-bot
    added
    status: staleNo author response after a needs: request; close candidate
    on Feb 11, 2023
  17. webpack-bot
    closed this as completedon Feb 26, 2023
  18. webpack-bot commented on Feb 26, 2023

    @webpack-bot
    webpack-bot
    on Feb 26, 2023
    Contributor
    More actions

    Issue was closed because of inactivity.

    If you think this is still a valid issue, please file a new issue with additional information.

  19. hronro commented on Feb 27, 2023

    @hronro
    hronro
    on Feb 27, 2023
    Author
    More actions

    I can confirm this issue still exist in the latest version of webpack (v5.75.0).

    Why did webpack-bot add an inactive label and then close it without sending me any notification this time? (At least in the last time the webpack-bot add the inactive label with a comment, so I can get a notification)

    Should this issue be reopened or should I file a new issue?

    cc @alexander-akait @sokra

  20. alexander-akait
    reopened this on Mar 7, 2023
  21. webpack-bot
    removed
    status: staleNo author response after a needs: request; close candidate
    on Mar 7, 2023
  22. alexander-akait commented on Mar 7, 2023

    @alexander-akait
    alexander-akait
    on Mar 7, 2023
    Member
    More actions

    Reopened, we will resetup our bot soon (planned), yeah, it is very annoying

  23. snitin315
    added a commit that references this issue on Mar 15, 2023

    test(configCases): add a test case for webpack#16040

    196b49f
  24. alexander-akait
    closed this as completedin #16809on Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedMaintainers welcome a community PR for thiswebpack-5Concerns the webpack 5 line

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.