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

The "path" argument must be of type string. Received undefined #500

Closed
JoydS opened this issue May 16, 2021 · 4 comments
Closed

The "path" argument must be of type string. Received undefined #500

JoydS opened this issue May 16, 2021 · 4 comments

Comments

@JoydS
Copy link

JoydS commented May 16, 2021

Hello guys !

Im trying to install your component but I have some issues with. When I try to compile, I have this error :

internal/validators.js:124
    throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
    at validateString (internal/validators.js:124:11)
    at Object.resolve (path.js:980:7)
    at afterResolveFn (/var/www/project/node_modules/offline-plugin/lib/index.js:213:42)
    at Hook.eval [as callAsync] (eval at create (/var/www/project/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:7:1)
    at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/var/www/project/node_modules/tapable/lib/Hook.js:18:14)
    at /var/www/project/node_modules/webpack/lib/NormalModuleFactory.js:287:30
    at eval (eval at create (/var/www/project/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)
    at /var/www/project/node_modules/webpack/lib/NormalModuleFactory.js:550:7
    at /var/www/project/node_modules/webpack/lib/NormalModuleFactory.js:117:11
    at /var/www/project/node_modules/webpack/lib/NormalModuleFactory.js:582:8 {
  code: 'ERR_INVALID_ARG_TYPE'
}

Any idea where is the problem ? I just added the plugin and used it without options.

@oller
Copy link

oller commented May 17, 2021

This plugin is not compatible with webpack 5. I believe the error your encountering is related to that : #491

@JoydS
Copy link
Author

JoydS commented May 17, 2021

Yeah, didn't see this issue, seems a duplicate, thank you for your answer @oller.

@JoydS JoydS closed this as completed May 17, 2021
@oller
Copy link

oller commented May 17, 2021

NP, in fact commenting on that I noticed #497 which seems like a fork with webpack 5 compatibility. Props to @LeComptoirDesPharmacies

@ROBYER1
Copy link

ROBYER1 commented Oct 28, 2021

NP, in fact commenting on that I noticed #497 which seems like a fork with webpack 5 compatibility. Props to @LeComptoirDesPharmacies

Thanks so much for linking this!

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

No branches or pull requests

3 participants