Error : unable to locate after build
See original GitHub issueHello, Someone can help me to resolve this :
After build : npm run build && npm run upload
apps-script-starter@4.18.0 build C:\Emeric\Polyvalence\gestion-polyvalence webpack
LOG from copy-webpack-plugin <e> unable to locate ‘C:\Emeric\Polyvalence\gestion-polyvalence\functions*.js’ at ‘C:\Emeric\Polyvalence\gestion-polyvalence\functions*.js’ <e> unable to locate ‘C:\Emeric\Polyvalence\gestion-polyvalence\src**.html’ at 'C:\Emeric\Polyvalence\gestion-polyvalence\src**.html’
- 21 hidden lines
ERROR in unable to locate ‘C:\Emeric\Polyvalence\gestion-polyvalence\functions*.js’ at ‘C:\Emeric\Polyvalence\gestion-polyvalence\functions*.js’
ERROR in unable to locate ‘C:\Emeric\Polyvalence\gestion-polyvalence\src**.html’ at 'C:\Emeric\Polyvalence\gestion-polyvalence\src**.html’
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! apps-script-starter@4.18.0 build: webpack
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the apps-script-starter@4.18.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
Issue For Window User :
new CopyWebpackPlugin({ patterns: [ { from: path.posix.join(path.resolve(__dirname,‘src’).replace(/\/g, ‘/’), ‘**/.html’), flatten: true, to: destination }, { from:
${src}/../appsscript.json
, to: destination, }, { from: path.posix.join(path.resolve(__dirname,‘src’).replace(/\/g, ‘/’), '…/functions/.js’), to: destination, flatten: true, }, ], }),Thanks to @lauthieb
Resolved in the new build. Thanks @Zireael13