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: process.version is undefined #26

Open
findingorder opened this issue Mar 25, 2020 · 1 comment
Open

TypeError: process.version is undefined #26

findingorder opened this issue Mar 25, 2020 · 1 comment

Comments

@findingorder
Copy link

I'm trying to use this in a Quasar (https://quasar.dev/) environment to load a Vue.js component on the fly at runtime. Quasar uses Webpack and Babel. When I call it, it throws the error: "TypeError: process.version is undefined". Does anyone have ideas about what might be going on here?
Thanks.

@cnchy
Copy link

cnchy commented May 14, 2021

module.exports = {
    node: {
        // prevent webpack from injecting useless setImmediate polyfill because Vue
        // source contains it (although only uses it if it's native).
        setImmediate: false,
        // prevent webpack from injecting mocks to Node native modules
        // that does not make sense for the client
        dgram: 'empty',
        fs: 'empty',
        net: 'empty',
        tls: 'empty',
        child_process: 'empty',
        module: 'empty',
    }
}

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

2 participants