Uncaught Error: define cannot be used indirect Uncaught Error: define cannot be used indirect express express

Uncaught Error: define cannot be used indirect


Just a shot in the dark, but I ran into the same error with different library. It could be that google spreadsheet depends on json-schema too.Try putting this in your webpack config:

module: {  noParse: /node_modules\/json-schema\/lib\/validate\.js/, // <-- This  loaders: [    //all your loaders...   ]  }