Skip to content

Problem with Webpack 5.0 #491

Open
Open
@sergeushenecz

Description

@sergeushenecz

Hello everyone. I have some problem when i updating from webpack 4 to 5 version. When i build project i have error in the console.

image

Error in line code.
image

Activity

Enase

Enase commented on Oct 13, 2020

@Enase

the same issue for me.
Some more details:
result.resource is undefined.
It can be accessed at result.createData.resource but then the following:

Uncaught exception: Error: NormalModuleFactory.afterResolve is no longer a waterfall hook, but a bailing hook instead. Do not return the passed object, but modify it instead. Returning false will ignore the request and results in no module created.
sergeushenecz

sergeushenecz commented on Oct 13, 2020

@sergeushenecz
Author

@Enase I found an issue webpack/webpack#11647 The same problem. I think plugin not supported the new version webpack.

Enase

Enase commented on Oct 13, 2020

@Enase

@sergeu90 ic, it's true. thanks.

sergeushenecz

sergeushenecz commented on Oct 14, 2020

@sergeushenecz
Author

@NekR Hello. Are we planning to upgrade to webpack 5?

sergeushenecz

sergeushenecz commented on Oct 24, 2020

@sergeushenecz
Author

Can anyone have experience writing a plugin for webpack? Maybe anyone fork and rewrite this library

Enase

Enase commented on Oct 26, 2020

@Enase

The last release was done about two years ago. I don't believe that we find any help here.

sergeushenecz

sergeushenecz commented on Oct 26, 2020

@sergeushenecz
Author

Does it mean the plugin is dead? Maybe Are there alternative plugins?

sergeushenecz

sergeushenecz commented on Nov 29, 2020

@sergeushenecz
Author

@gowrav-scienaptic Can you explain? Is it alternative plugin?

gowrav-scienaptic

gowrav-scienaptic commented on Nov 29, 2020

@gowrav-scienaptic

@sergeu90, Yes it's an alternative for offline-plugin. You can read the details on how to integrate here.

timminata

timminata commented on Dec 18, 2020

@timminata

We are using offline-plugin and attempting to upgrade to Webpack 5. Should we wait for this issue to be resolved or is this no longer maintained?

Enase

Enase commented on Dec 18, 2020

@Enase

@timminata plugin author doesn't reply over two years. Unfortunately, the answer is yes.

sergeushenecz

sergeushenecz commented on Feb 22, 2021

@sergeushenecz
Author

@gowrav-scienaptic Thanks. I migrated to workbox.

ghost
ghost
Enase

Enase commented on May 7, 2021

@Enase

@LeComptoirDesPharmacies Unfortunately it's not possible to create issue in your github repo.
There is an issue while webpack build with your implementation:

(node:18736) [DEP_WEBPACK_COMPILATION_CACHE] DeprecationWarning: Compilation.cache was removed in favor of Compilation.getCache()
    at compilationFn (......./node_modules/@lcdp/offline-plugin/lib/service-worker.js:142:25)
    at _next36 (eval at create (......../node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:50:1)
    at _next14 (eval at create (......../node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:97:1)

and

BREAKING CHANGE: No more changes should happen to Compilation.assets after sealing the Compilation.
	Do changes to assets earlier, e. g. in Compilation.hooks.processAssets.
	Make sure to select an appropriate stage from Compilation.PROCESS_ASSETS_STAGE_*.
    at ServiceWorker.apply (....../node_modules/@lcdp/offline-plugin/lib/service-worker.js:192:35)
ghost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @timminata@Enase@sergeushenecz@gowrav-scienaptic

        Issue actions

          Problem with Webpack 5.0 · Issue #491 · NekR/offline-plugin