fossamagna / gas-webpack-plugin

Webpack plugin for Google Apps Script

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot read property 'getChunkModules' of undefined

alexblack opened this issue · comments

I'm trying out the latest version 2.0.1 and unfortunately my webpack build is failing with it:

 ERROR in chunk main [entry]
    code.js
    Cannot read property 'getChunkModules' of undefined

It works fine with 1.2.2 it seems. Any suggestions? Thanks!!

Having the same issue as above with trying to use 2.0.1. The build works with 1.2.2 but none of the globals are exposed. I can see the functions being copied over into the webpack output file, but doesn't look like they are available in the global scope, since when I open the Google Apps Script editor it says no functions found.

By the way, thanks for your great work on this repo! -- have been using for years on https://github.com/enuchi/React-Google-Apps-Script

gas

@alexblack @enuchi Thank you.
What webpack version you use ?
gas-webpack-plugin@2.x.x is only support webpack 5. If you use webpack 4, please use gas-webpack-plugin@1.x.x.

By the way, thanks for your great work on this repo! -- have been using for years on https://github.com/enuchi/React-Google-Apps-Script

I am really honored to hear that.

Hi @fossamagna thanks for getting back to me on this. Yes I was using webpack v4, sorry about that. Ok I will close this then.