Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add aurelia-toolbelt prevents bootstrapping the app #4

Closed
shahabganji opened this issue Oct 14, 2018 · 17 comments
Closed

Add aurelia-toolbelt prevents bootstrapping the app #4

shahabganji opened this issue Oct 14, 2018 · 17 comments

Comments

@shahabganji
Copy link

Hi @MaximBalaganskiy ,

I forked your repository and just added the aurelia-toolbelt package to it, however, one way or the other it has an error at bootstrapping the Aurelia app.

image

I have just added this line to the boot.ts file

aurelia.use.standardConfiguration()
	.plugin(PLATFORM.moduleName("aurelia-toolbelt"));

Can you take a look at this problem, or give me some hints?

@MaximBalaganskiy
Copy link
Owner

MaximBalaganskiy commented Oct 14, 2018 via email

@shahabganji
Copy link
Author

@MaximBalaganskiy

I speculate that it is related to aurelia-dialog too, what I see from the logs of the issue, however, to make sure I'll check with older versions of aurelia-toolbelt in which we do not have aurelia-dialog.

One question out of my curiosity, how this repository differs from what aurelia-cli creates? does it have benefits over cli version?

Have a great day 👍

@MaximBalaganskiy
Copy link
Owner

MaximBalaganskiy commented Oct 14, 2018 via email

@gregoryagu
Copy link

Check out my fork https://github.com/gregoryagu/AureliaDotnetTemplate It's been updated a bit from the original.

@shahabganji
Copy link
Author

Thanks, @gregoryagu,

I checked your fork and it has the same problem with aurelia-dialog

@MaximBalaganskiy
Copy link
Owner

Is this still relevant?

@shahabganji
Copy link
Author

I would prefer this template, so the answer is yes, have you changed anything?

@MaximBalaganskiy
Copy link
Owner

MaximBalaganskiy commented Oct 28, 2018 via email

@shahabganji
Copy link
Author

So, the workaround is to turn off the module concatenation plugin? I didn't see that you have used that in this template, right?

@MaximBalaganskiy
Copy link
Owner

MaximBalaganskiy commented Oct 28, 2018 via email

@shahabganji
Copy link
Author

shahabganji commented Oct 28, 2018 via email

@MaximBalaganskiy
Copy link
Owner

MaximBalaganskiy commented Oct 28, 2018 via email

@shahabganji
Copy link
Author

Can you please check that the fix is working for your package?

The fix is to turn off the module concatenation in webpack? I'll check.

@MaximBalaganskiy
Copy link
Owner

@shahabganji Any luck?

@shahabganji
Copy link
Author

shahabganji commented Oct 30, 2018 via email

@shahabganji
Copy link
Author

@MaximBalaganskiy

I checked this on my fork and changed some stuff, however, when I cloned your repository again and checked aurelia-dialog and aurelia-toolbelt, both look to work properly. I am not sure why, but maybe sth related to this commit. Anyway I added aurelia-toolbelt on my forked repository. If you'd like I can make a pull request, otherwise there might not be any big differences. BTW, I am not sure but I remember that one said MiniCssExtraxtPlugin might be better than ExtractTextWebpackPlugin. What's your opinion of replacing these two guys?

And, since I didn't see the problem any more I'll close the issue.

Thanks

@MaximBalaganskiy
Copy link
Owner

According to webpack-contrib/extract-text-webpack-plugin#749 (comment) MiniCss should be used from now on. Good point

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants