Giter VIP home page Giter VIP logo

Comments (7)

unncommon avatar unncommon commented on September 16, 2024 2

I had to change webpack.config.js and add brackets around CleanWebpackPlugin :

const { CleanWebpackPlugin } = require('clean-webpack-plugin’);

All working well now. Thank you.

from apps-script-starter.

labnol avatar labnol commented on September 16, 2024 1

Thanks!

from apps-script-starter.

ckalegi avatar ckalegi commented on September 16, 2024

@labnol Mind documenting the versions of Node & NPM you used in the video? I see Node 10.12 but wonder if using the specific NPM version would alleviate the issue

from apps-script-starter.

unncommon avatar unncommon commented on September 16, 2024

I have the same error, can't compile the code as per the video instructions.

NPM v6.4.1
NODE v10.13.0

ERROR :

[email protected] build /Users/braulio/Documents/⬛︎ > Projects/⬛︎ GSTACK Builder/Builder v2/StaxBuilder
webpack

/Users/braulio/Documents/⬛︎ > Projects/⬛︎ GSTACK Builder/Builder v2/StaxBuilder/node_modules/webpack-cli/bin/cli.js:93
throw err;
^

TypeError: CleanWebpackPlugin is not a constructor
at Object. (/Users/braulio/Documents/⬛︎ > Projects/⬛︎ GSTACK Builder/Builder v2/StaxBuilder/webpack.config.js:76:5)
at Module._compile (/Users/braulio/Documents/⬛︎ > Projects/⬛︎ GSTACK Builder/Builder v2/StaxBuilder/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (/Users/braulio/Documents/⬛︎ > Projects/⬛︎ GSTACK Builder/Builder v2/StaxBuilder/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
at WEBPACK_OPTIONS (/Users/braulio/Documents/⬛︎ > Projects/⬛︎ GSTACK Builder/Builder v2/StaxBuilder/node_modules/webpack-cli/bin/utils/convert-argv.js:116:13)
at requireConfig (/Users/braulio/Documents/⬛︎ > Projects/⬛︎ GSTACK Builder/Builder v2/StaxBuilder/node_modules/webpack-cli/bin/utils/convert-argv.js:118:6)
at /Users/braulio/Documents/⬛︎ > Projects/⬛︎ GSTACK Builder/Builder v2/StaxBuilder/node_modules/webpack-cli/bin/utils/convert-argv.js:125:17
at Array.forEach ()
at module.exports (/Users/braulio/Documents/⬛︎ > Projects/⬛︎ GSTACK Builder/Builder v2/StaxBuilder/node_modules/webpack-cli/bin/utils/convert-argv.js:123:15)
at yargs.parse (/Users/braulio/Documents/⬛︎ > Projects/⬛︎ GSTACK Builder/Builder v2/StaxBuilder/node_modules/webpack-cli/bin/cli.js:71:45)
at Object.parse (/Users/braulio/Documents/⬛︎ > Projects/⬛︎ GSTACK Builder/Builder v2/StaxBuilder/node_modules/yargs/yargs.js:567:18)
at /Users/braulio/Documents/⬛︎ > Projects/⬛︎ GSTACK Builder/Builder v2/StaxBuilder/node_modules/webpack-cli/bin/cli.js:49:8
at Object. (/Users/braulio/Documents/⬛︎ > Projects/⬛︎ GSTACK Builder/Builder v2/StaxBuilder/node_modules/webpack-cli/bin/cli.js:390:3)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object. (/Users/braulio/Documents/⬛︎ > Projects/⬛︎ GSTACK Builder/Builder v2/StaxBuilder/node_modules/webpack/bin/webpack.js:156:2)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:741:12)
at startup (internal/bootstrap/node.js:285:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:739:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: webpack
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

from apps-script-starter.

nk-gears avatar nk-gears commented on September 16, 2024

I tried with the package clean-webpack-plugin 2.0.1 and it works good.

from apps-script-starter.

contributorpw avatar contributorpw commented on September 16, 2024

@pdavisjones

Error: Cannot find module './node_modules/gas-webpack-plugin/node_modules/gas-entry-generator'

Please share your package.json & package-lock.json. Also check the path ./node_modules/gas-webpack-plugin/node_modules/gas-entry-generator for existing files.

from apps-script-starter.

contributorpw avatar contributorpw commented on September 16, 2024

@unncommon

I'm afraid it's not the same issue.

from apps-script-starter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.