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

Multiple --loader options seem to overwrite each other #39913

Closed
TimDaub opened this issue Aug 27, 2021 · 1 comment
Closed

Multiple --loader options seem to overwrite each other #39913

TimDaub opened this issue Aug 27, 2021 · 1 comment
Labels
duplicate Issues and PRs that are duplicates of other issues or PRs. loaders Issues and PRs related to ES module loaders

Comments

@TimDaub
Copy link

TimDaub commented Aug 27, 2021

Version

v14.17.5

Platform

Darwin kazoo 19.6.0 Darwin Kernel Version 19.6.0: Thu May 6 00:48:39 PDT 2021; root:xnu-6153.141.33~1/RELEASE_X86_64 x86_64

Subsystem

No response

What steps will reproduce the bug?

both require to set a --loader option when starting node. Currently, my project uses both e.g. node --loader=quibble --loader=esmock. However, it seems that the latter option overwrites the first.

How often does it reproduce? Is there a required condition?

No response

What is the expected behavior?

The expected behavior is that I can use multiple loaders, I guess.

What do you see instead?

I see that one loader is overwriting another, here's an error message thrown in a test because the loader quibble hasn't been respected.

 Error (NodeError) {
    code: 'ERR_MODULE_NOT_FOUND',
    message: 'Cannot find package \'cross-fetch?__quibbleresolvepath\' imported from /home/runner/work/project/project/node_modules/quibble/lib/esm-import-functions.js',
  }

Additional information

No response

@Mesteery Mesteery added the loaders Issues and PRs related to ES module loaders label Aug 28, 2021
@targos
Copy link
Member

targos commented Aug 29, 2021

It's currently not possible to chain loaders. This is tracked in #36396.

@targos targos closed this as completed Aug 29, 2021
@targos targos added the duplicate Issues and PRs that are duplicates of other issues or PRs. label Aug 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Issues and PRs that are duplicates of other issues or PRs. loaders Issues and PRs related to ES module loaders
Projects
None yet
Development

No branches or pull requests

3 participants