I'm trying to provide uuid plugin in a very similar way as jquery. (jquery is working fine).

plugins: [
    new webpack.ProvidePlugin({
        $: 'jquery',
        jQuery: 'jquery',
        "uuidv4": "uuid/v4"

After that I'm receiving uuidv4 is not defined. What am I doing wrong?

Your Answer


By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.