Open Closed

v7.0 - Scripts and bundling - webpack/gulp ? #7272


0
deltavision created

Hi,

I have problems with bundle.json - it does not create bundle files. Using Core/JQuery project.

Relates to #7133 Link to webpack from the question above - not working / file missing. https://github.com/aspnetzero/aspnet-zero-core/blob/dev/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Mvc/webpack.config.js

But here:

https://github.com/aspnetzero/aspnet-zero-core/commit/84342d45991cc23611fc347b9a51bea0ae9a4de1#diff-9b3e338957ad2546ebe8ef5c19be4776

You changed to gulp instead of webpack What do we need to do, to make bundle work again?

Best Michael


6 Answer(s)
  • 0
    deltavision created

    Hi,

    got it working with webpack - problem was I commented a line (with // ) in the bundle.json file. Looked OK in the VS editor, but "npm run create-bundle" failed...

    So now the bundles build - but the auto generate/update of bundles as in v6.x is not working. I have to manualley run "npm run create-bundle".

    Next problem..., after re-run of "npm run create-bundle" the App goes to this error after login. Maybe something related to .min.css /.min.js - vs: .css/.js, but not sure....

    2019-07-10_14-11-22.jpg

  • 0
    ismcagdas created

    Hi @deltavision

    Sorry for my late response. Do you see any errors in the browser console on your login page ?

  • 0
    deltavision created

    Hi,

    from Chrome - on EDGE I cannot see any errors (maybe looking in the wrong place...)

    2019-07-16_18-17-12.jpg

  • 0
    alper created

    You need to downgrade the Angular version from v8.1 to v8.0 in yarn.lock.

    See https://support.aspnetzero.com/QA/Questions/7262

  • 0
    deltavision created

    Hi,

    I am using Core Mvc jQuery - so no Angular in yarn.lock - as far as I can see.

  • 0
    alper created

    sorry my fault