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

v3 not compatible with vue-tables-2 (process is not defined) #934

Closed
vesper8 opened this issue Mar 3, 2018 · 1 comment
Closed

v3 not compatible with vue-tables-2 (process is not defined) #934

vesper8 opened this issue Mar 3, 2018 · 1 comment

Comments

@vesper8
Copy link

vesper8 commented Mar 3, 2018

Version

3.0.0-beta.2

Reproduction link

https://github.com/vesper8/vuecli-vuetables2-error

Steps to reproduce

Install vue-tables-2
Try to use either the server table or client table, they both cause the error

What is expected?

It should work, I've been using it for over a year on a non vue-cli project. Latest version works fine if not using vue-cli v3

What is actually happening?

getting a 'process is not defined' error
screenshot 2018-03-03 15 47 58


A few of us are having this very problem. And we're all using vue-cli v3 beta. Please see this issue

matfish2/vue-tables-2#430

@vesper8
Copy link
Author

vesper8 commented Mar 3, 2018

So after more trial and error I used 'vue inspect' to see what was inside the webpack config and I noticed

  node: {
    ...
    process: false,
    ...
  }

I also found someone that was having a similar problem in another github project suggest to change it to process: 'mock'

So inside my vue.config.js I added

  configureWebpack: {
    node: {
      process: 'mock',
    },
  },

and low and behold that fixed the problem. vue-tables-2 now works

I also tried process: true instead of process: 'mock' and that also works

Now I have no idea why this was set to false, and what are the repercussions of what I just did.. I would love to know if what I'm doing is bad.. and why it was needed in order to make this popular package work..

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

1 participant