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

TypeError: require.resolve.paths is not a function #17

Closed
nkbt opened this issue Dec 3, 2018 · 1 comment · Fixed by #22
Closed

TypeError: require.resolve.paths is not a function #17

nkbt opened this issue Dec 3, 2018 · 1 comment · Fixed by #22

Comments

@nkbt
Copy link

nkbt commented Dec 3, 2018

Not sure if intentional...

https://nodejs.org/api/modules.html#modules_require_resolve_paths_request

image

This overrides default require resolve, but does not implement full api

      require.resolve = function(request, options) {
        return Module._resolveFilename(request, mod, false, options);
      };
@flyyang
Copy link

flyyang commented Jan 15, 2019

I think it's a bug , i'd like to make a pr if you aggreed. @zertosh

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