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

Fails to process post request from Google - after now using latest version of Aurelia Webpack Babel Skeleton #178

Closed
JoshuaVSherman opened this issue Apr 23, 2017 · 6 comments

Comments

@JoshuaVSherman
Copy link

JoshuaVSherman commented Apr 23, 2017

please reference these two open issues:

WebJamApps/combined-front#153

aurelia/skeleton-navigation#805

Current behavior:
Intermittent freeze to the /dashboard route after login. I am using the Aurelia-Auth plugin
There was no issue before I upgraded to the latest version of this skeleton, and there is no way to debug this issue that I am aware of. Myself and another developer have tried everything we could think of for the past day, but were unsuccessful in resolving this bug. i am open to using a different plugin or front end package for auth if that is the only solution.

Expected/desired behavior:
After login, the user gets routed to the /dashboard successfully without any freeze-ups

link to repo:
https://github.com/WebJamApps/combined-front/tree/dev/src

@JoshuaVSherman
Copy link
Author

could this be an issue with using the aurelia-webpack-plugin
and how we needed to do this in the main.js
aurelia.use.plugin(PLATFORM.moduleName('aurelia-auth/auth-filter'));
aurelia.use.plugin(PLATFORM.moduleName('aurelia-auth'), (baseConfig)=>{
baseConfig.configure(config);
});

@JoshuaVSherman
Copy link
Author

This just happened from production, so it is definitely not the webpack dev server
https://www.web-jam.com/dashboard

please provide any recommendations

@paulvanbladel
Copy link
Owner

Sorry Joshua no idea. Aurelia-auth didn't change recently.

@JoshuaVSherman
Copy link
Author

This is probably the reason, found it while looking at aurelia-authentication plug in
SpoonX/aurelia-authentication#347

@JoshuaVSherman
Copy link
Author

I am not currently able to reproduce the issue after I put this into the webpack config

plugins: [
new AureliaPlugin(),
new ModuleDependenciesPlugin({
'aurelia-auth': ['./auth-filter'],
'aurelia-polymer': ['./au-select-custom-attribute'],
'au-table': ['./au-table', './au-table-select', './au-table-sort']
}),

@jods4
says that is is your aurelia-auth plugin and not the webpack aurelia plugin, but there was no issue until I upgraded to the newer skeleton project. He also said that it doesn't matter if we aurelia.use the plugin in the main.js or if we put it into the webpack config, it should do the same thing, but I never needed to put aurelia-auth/auth-filter in the main.js before to get it to build?
Right now, I have this in the webpack config

@JoshuaVSherman
Copy link
Author

I have not been able to repeat this, since I moved the submodule dependancy into the webpack config

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

2 participants