aurelia / bootstrapper

Sets up the default configuration for the aurelia framework and gets you up and running quick and easy.
MIT License
75 stars 34 forks source link

aurelia-pal-browser tryng loading in wwwroot folder with ASP.NET #55

Closed mauriliofilho closed 7 years ago

mauriliofilho commented 7 years ago

I'm submitting a bug report In my application trying to run, in the browser console it returns a 404 error for the aurelia-pal-browser files being loaded from the root folder of the localhost application: 1354 / aurelia-pal-browser. Js. Placing the file in question in the root folder of the application it works perfectly, try to install from jspm from the command line, the same error occurs, the first attempt was made to install from a VS extension in which I use To install dependencies using any dependency manager, but even then the same problem still occurs.

Please tell us about your environment:

Akelitz commented 7 years ago

@mauriliofilho with commit 8ba596b the bootstrapper has been reworked "to detect and load the proper pal". As a result 'aurelia-pal-browser' is no longer among the required modules in the define declaration and SystemJS seems no longer able to load it properly. The package is still installed while installing 'aurelia-bootstrapper' but you need to manually map "aurelia-pal-browser" to "npm:aurelia-pal-browser@1.1.0" in the config.js file, right after the "aurelia-framework": "npm:aurelia-framework@1.0.8" mapping.

CodingGorilla commented 7 years ago

Is this to be a permanent requirement? I tried to start on my first Aurelia app today, and was watching the PluralSight course 'Aurelia Fundamentals' and spent like 3 hours trying to figure out why my app wasn't working when I did exactly what the course told me to do, until I finally came across this issue.

Akelitz commented 7 years ago

@CodingGorilla to be honest I am not an expert of SystemJS, but I think the right procedure for brand new projects should be to install 'aurelia-pal-browser' by itself simply running 'jspm install aurelia-pal-browser' right after 'aurelia' and 'aurelia-bootstrapper'. I can't (because of my lack of knowledge) answer why 'aurelia-bootstrapper' still trigger the installation of 'aurelia-pal-browser' with a "wrong" reference.

CodingGorilla commented 7 years ago

@Akelitz I actually tried that, I found a stackoverflow post mentioning that you had to do a jspm install npm:aurelia-pal-browser (I think), but that didn't solve the problem. I guess all I'm asking here is that if you need to do this there should probably be some documentation somewhere.

openbooknoobdeveloper commented 6 years ago

thanks for the help