Closed mlassbo closed 3 years ago
Thank you for your quick and good help! I could solve it by explicitly providing "target: 'web'" in webpack config. (I call webpack over gulp, perhaps that leads into some confusion between node and web...)
It builds successfully now, unfortunately I get the following runtime error now:
Template markup must be wrapped in a <template> element e.g. <template> <!-- markup here --> </template>
This is for my root component, which is wrapped withing a template tag (was working with previous aurelia webpack plugin).
Do you have an idea? Sorry for bothering you! :/
@elitastic no problem at all. Thanks for the issue, it helps fix the error in advance, before others hit it 👍 For your current build issue, is the follow steps enough to reproduce:
bootstrap
from aurelia-bootstrapper
in mainAlso, I think we should open a new issue, so that we can avoid spamming others, as the support for v5 is already in. This is more like a bug.
Are we far away from a 5.0.0-beta1 or 5.0.0-rc1 release here?
@bigopon Thank you very much for your hard work! This enables us to upgrade our dependencies again! I hope Aurelia will be around for a very long time in the future!
@bigopon Great to see the progress here - it's much appreciated!
I just tried to install the plugin from the master
branch, but I'm running into this error:
@thomas-darling it's been fixed. I'll close this issue for now, so that we don't accidentally spam many people. Feel free to open a new issue to help with bug fixing if you run into one. Thanks everyone for the journey.
Is there a RC or Beta version?
@EisenbergEffect will do a release soon. Please use master for now if possible
@bigopon You're the best! Thanks a million!
When can we expect a release (alpha, beta, rc)?
I'm submitting a feature request Add support for Webpack 5.
We (at Hogia Group) need to start preparing our Aurelia apps for Webpack 5. It is in beta but Webpack reccommends to use it for production. Also, Webpack 5 comes with Module Federation that might become an important part of building micro frontends using Aurelia and we need aurelia-webpack-plugin to support webpack 5 to be able to evaluate this properly. I've been in contact with webpack core member Zack Jackson @ScriptedAlchemy, the creator of Module Federation, about this and he has offered his help with the upgrade if needed.
Please tell us about your environment:
Operating System: Windows 10
Node Version: 12.16.0
NPM Version: 6.13.4
JSPM OR Webpack AND Version webpack 5.0.0-beta.17
Browser: all
Language: all
Current behavior: When upgrading to webpack 5 beta 17 build fails with the following error:
Error: Cannot find module 'webpack/lib/BasicEvaluatedExpression' Require stack:
Expected/desired behavior: Build runs without errors