Closed tebruno99 closed 5 years ago
@tebruno99 awesome 👍 @EisenbergEffect
There is import 'bootstrap/dist/css/bootstrap.css';
in main.js
.
The one in app.html
<require from="bootstrap/css/bootstrap.css"></require>
should be removed totally.
FYI, both <require from="bootstrap/css/bootstrap.css"></require>
and <require from="bootstrap/dist/css/bootstrap.css"></require>
should work without any problem, our aurelia-webpack-plugin supports that.
I guess the conflict with main.js
(it is using the path with dist/
) is the cause of the failure. It confused webpack tracer. Removing the require tag from app.html
should fix this issue.
I tested your suggestion and it worked as well. I had no way to know that, thanks! Pull request updated with the suggested fix.
You are welcome. The tutorial was first built for jspm(or requirejs I don't remember) setup, then converted to webpack. That's where the duplicated css imports came from.
Thanks for working through this together and getting to the proper fix 😄
There is a typo so the example does not work.