Comments (7)
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.
Thanks!
from apps-script-starter.
@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.
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.
I tried with the package clean-webpack-plugin 2.0.1 and it works good.
from apps-script-starter.
@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.
I'm afraid it's not the same issue.
from apps-script-starter.
Related Issues (20)
- npm run build failed HOT 1
- Adding JSDoc support HOT 2
- Unauthenticated for users other than myself HOT 3
- How to load user-defined js file in html? HOT 1
- Why ES6 code prettily not available after deployed to AppScript Editor HOT 1
- Adding a library fails the build HOT 1
- Error : unable to locate after build HOT 5
- How/Where can I add a reference to an existing project? HOT 4
- How to setup a menu in bound google doc HOT 1
- Error: Nested clasp projects are not supported.
- Support Webpack 5 HOT 3
- [email protected] High Severity Vulnerabilities HOT 2
- eslint-config-prettier version 8.x support HOT 2
- Is there a way to debug the code using an IDE? HOT 2
- [Request] Set GitHub Repo as "Template Repo" HOT 1
- Typescript support HOT 1
- Unusable build output with fresh project HOT 1
- functions in file with imports can't be created in webpack production mode HOT 1
- clasp create command doesn't create .clasp.json file HOT 2
- Typescript types in Javascript HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apps-script-starter.