Skip to content

Can't run app because of webpack error #2

@jdwillemse

Description

@jdwillemse

When running yarn dev after install I get the following error:

(node:26864) UnhandledPromiseRejectionWarning: TypeError: extractedChunk.addGroup is not a function
    at chunks.forEach (nextjs-template/node_modules/extract-text-webpack-plugin/dist/index.js:217:28)
    at Array.forEach (<anonymous>:null:null)
    at compilation.hooks.optimizeTree.tapAsync (nextjs-template/node_modules/extract-text-webpack-plugin/dist/index.js:209:16)
    at AsyncSeriesHook.eval [as callAsync] (<anonymous>:12:1)
    at AsyncSeriesHook.lazyCompileHook (nextjs-template/node_modules/tapable/lib/Hook.js:154:20)
    at Compilation.seal (nextjs-template/node_modules/next/node_modules/webpack/lib/Compilation.js:1244:27)
    at hooks.make.callAsync.err (nextjs-template/node_modules/next/node_modules/webpack/lib/Compiler.js:624:17)
    at _done (<anonymous>:9:1)
    at _err0 (<anonymous>:20:22)
    at Promise.all.then (nextjs-template/node_modules/next/node_modules/webpack/lib/DynamicEntryPlugin.js:74:20)
    at <anonymous>:null:null
    at process._tickCallback (internal/process/next_tick.js:189:7)

From a quick google this seems to be related to outdated webpack plugins

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions