You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have some struggle with your plugin. Strangely, when I use webpack in development mode, with webpack-dev-server (the watch mode), everything's fine.
But when I try to compile for production, I got this error:
> @becode/rivyoo@0.0.1 build /Users/leny/Works/becode/rivyoo
> npx webpack -p --progress --profile --colors
0% compiling
(…)
93% after chunk asset optimization google-fonts-pluginUnhandled rejection TypeError: Cannot read property 'files' of undefined
at /Users/leny/Works/becode/rivyoo/node_modules/google-fonts-plugin/dist/index.js:237:17
at SyncHook.eval [as call] (eval at create (/Users/leny/Works/becode/rivyoo/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:16:1)
at SyncHook.lazyCompileHook (/Users/leny/Works/becode/rivyoo/node_modules/tapable/lib/Hook.js:154:20)
at /Users/leny/Works/becode/rivyoo/node_modules/webpack/lib/Compilation.js:1319:42
at eval (eval at create (/Users/leny/Works/becode/rivyoo/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:16:1)
at /Users/leny/Works/becode/rivyoo/node_modules/terser-webpack-plugin/dist/index.js:319:9
at step (/Users/leny/Works/becode/rivyoo/node_modules/terser-webpack-plugin/dist/TaskRunner.js:87:9)
at done (/Users/leny/Works/becode/rivyoo/node_modules/terser-webpack-plugin/dist/TaskRunner.js:98:30)
at tryCatcher (/Users/leny/Works/becode/rivyoo/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/Users/leny/Works/becode/rivyoo/node_modules/bluebird/js/release/promise.js:517:31)
at Promise._settlePromise (/Users/leny/Works/becode/rivyoo/node_modules/bluebird/js/release/promise.js:574:18)
at Promise._settlePromise0 (/Users/leny/Works/becode/rivyoo/node_modules/bluebird/js/release/promise.js:619:10)
at Promise._settlePromises (/Users/leny/Works/becode/rivyoo/node_modules/bluebird/js/release/promise.js:699:18)
at Promise._fulfill (/Users/leny/Works/becode/rivyoo/node_modules/bluebird/js/release/promise.js:643:18)
at Promise._resolveCallback (/Users/leny/Works/becode/rivyoo/node_modules/bluebird/js/release/promise.js:437:57)
at Promise._settlePromiseFromHandler (/Users/leny/Works/becode/rivyoo/node_modules/bluebird/js/release/promise.js:529:17)
at Promise._settlePromise (/Users/leny/Works/becode/rivyoo/node_modules/bluebird/js/release/promise.js:574:18)
at Promise._settlePromise0 (/Users/leny/Works/becode/rivyoo/node_modules/bluebird/js/release/promise.js:619:10)
at Promise._settlePromises (/Users/leny/Works/becode/rivyoo/node_modules/bluebird/js/release/promise.js:699:18)
at Promise._fulfill (/Users/leny/Works/becode/rivyoo/node_modules/bluebird/js/release/promise.js:643:18)
at Promise._resolveCallback (/Users/leny/Works/becode/rivyoo/node_modules/bluebird/js/release/promise.js:437:57)
at Promise._settlePromiseFromHandler (/Users/leny/Works/becode/rivyoo/node_modules/bluebird/js/release/promise.js:529:17)
at Promise._settlePromise (/Users/leny/Works/becode/rivyoo/node_modules/bluebird/js/release/promise.js:574:18)
at Promise._settlePromise0 (/Users/leny/Works/becode/rivyoo/node_modules/bluebird/js/release/promise.js:619:10)
at Promise._settlePromises (/Users/leny/Works/becode/rivyoo/node_modules/bluebird/js/release/promise.js:699:18)
at Promise._fulfill (/Users/leny/Works/becode/rivyoo/node_modules/bluebird/js/release/promise.js:643:18)
at Promise._settlePromise (/Users/leny/Works/becode/rivyoo/node_modules/bluebird/js/release/promise.js:587:21)
at Promise._settlePromise0 (/Users/leny/Works/becode/rivyoo/node_modules/bluebird/js/release/promise.js:619:10)
at Promise._settlePromises (/Users/leny/Works/becode/rivyoo/node_modules/bluebird/js/release/promise.js:699:18)
at Promise._fulfill (/Users/leny/Works/becode/rivyoo/node_modules/bluebird/js/release/promise.js:643:18)
at Promise._resolveCallback (/Users/leny/Works/becode/rivyoo/node_modules/bluebird/js/release/promise.js:459:14)
at Promise._settlePromiseFromHandler (/Users/leny/Works/becode/rivyoo/node_modules/bluebird/js/release/promise.js:529:17)
at Promise._settlePromise (/Users/leny/Works/becode/rivyoo/node_modules/bluebird/js/release/promise.js:574:18)
at Promise._settlePromise0 (/Users/leny/Works/becode/rivyoo/node_modules/bluebird/js/release/promise.js:619:10)
at Promise._settlePromises (/Users/leny/Works/becode/rivyoo/node_modules/bluebird/js/release/promise.js:699:18)
at Promise._fulfill (/Users/leny/Works/becode/rivyoo/node_modules/bluebird/js/release/promise.js:643:18)
Hi,
I have some struggle with your plugin. Strangely, when I use webpack in development mode, with webpack-dev-server (the watch mode), everything's fine.
But when I try to compile for production, I got this error:
Here's my relevant devDependencies:
Here's my webpack config file, if needed:
I don't really know the webpack plugin dev env, so I can't really dig deep onto it.
But if you can point me in a general direction to help you, don't hesitate to do so.
Thanks!
The text was updated successfully, but these errors were encountered: