We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Looks up loader successfully when an extension is single character.
rechoir throws an error of which message is "No module loader found for "undefined". when an extension is single character.
rechoir
"No module loader found for "undefined".
// test.js const config = { '.coffee': 'coffeescript/register', '.co': 'coffeescript/register', '.c': 'coffeescript/register', }; const rechoir = require('rechoir'); console.log(rechoir.prepare(config, './aaa.coffee')); console.log(require('./aaa.coffee')); console.log(rechoir.prepare(config, './aaa.co')); console.log(require('./aaa.co')); console.log(rechoir.prepare(config, './aaa.c')); console.log(require('./aaa.c'));
$ npm i rechoir coffeescript $ touch aaa.coffee aaa.co aaa.c $ node test.js [ { moduleName: 'coffeescript/register', module: {}, error: null } ] {} [ { moduleName: 'coffeescript/register', module: {}, error: null } ] {} /path/to/rechoir/bug/node_modules/rechoir/index.js:30 throw new Error('No module loader found for "' + usedExtension + '".'); ^ Error: No module loader found for "undefined". at Object.exports.prepare (/path/to/rechoir/bug/node_modules/rechoir/index.js:30:11) at Object.<anonymous> (/path/to/rechoir/bug/test.js:14:21) at Module._compile (node:internal/modules/cjs/loader:1108:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10) at Module.load (node:internal/modules/cjs/loader:973:32) at Function.Module._load (node:internal/modules/cjs/loader:813:14) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12) at node:internal/main/run_main_module:17:47
node -v
npm -v
gulp -v
Nothing.
The text was updated successfully, but these errors were encountered:
Fix: Support single character extension. (issue gulpjs#38)
91bcd17
1258548
Successfully merging a pull request may close this issue.
What were you expecting to happen?
Looks up loader successfully when an extension is single character.
What actually happened?
rechoir
throws an error of which message is"No module loader found for "undefined".
when an extension is single character.Please give us a sample
of your gulpfilefor reproductionTerminal output / screenshots
Please provide the following information:
node -v
): v15.5.0npm -v
): 7.3.0gulp version (runrechoir version: 0.7.0gulp -v
):Additional information
Nothing.
The text was updated successfully, but these errors were encountered: