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

modules not loading when using cache-loader #148

Open
jauniuse opened this issue Jul 12, 2018 · 2 comments
Open

modules not loading when using cache-loader #148

jauniuse opened this issue Jul 12, 2018 · 2 comments

Comments

@jauniuse
Copy link

jauniuse commented Jul 12, 2018

I'm submitting a bug report

  • Library Version:
    3.0.0

Please tell us about your environment:

  • Operating System:
    Windows 10

  • Node Version:
    6.11.1

  • NPM Version:
    3.10.10
  • JSPM OR Webpack AND Version
    webpack 4.4.1
  • Browser:
    all
  • Language:
    TypeScript 2.6

Current behavior:

I want to use cache-loader in order to speed up webpack builds. As soon as I try to use cache-loader with ts-loader, during runtime modules defined with PLATFORM.ModuleName('XXX') cannot be resolved resulting in error Unable to find module with XXX.

Expected behavior:
Modules defined with PLATFORM.ModuleName('XXX') should be resolved during runtime when using cache-loader and should not result in error.

@expaso
Copy link

expaso commented Sep 30, 2018

Yes sir, me too.
Building works fine, but problems arise when resolving modules at runtime.

@jods4
Copy link
Contributor

jods4 commented Oct 11, 2018

A tiny repro would help but my guess is that it's because we use symbols on dependencies and that cache loader serializes them to disk and back (and looses that information in the process).

If a repro confirms that changing the symbol to a string fixes this without unwanted effect we might consider the change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants