Nested .html pages have a problem loading amber when amber is installed by bower.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Nested .html pages have a problem loading amber when amber is installed by bower.

Tom Rake
It seems nested .html pages have a problem loading amber when amber is installed by bower.

I made and attempt to make the web examples work by removing the vendor/amber submodule and loading amber by bower. I added a bower.json to load amber 0.12.1.

Here is my troubled code:


You need bower installed and need to run bower install. Execute start.sh or start.bat to start the server. Then browse 

http://localhost:4000/hello/index.html 

to see the problem which is require is trying to load jquery.min,js and codemirror the bower_components directory inside hello/ 

http://localhost:4000/hello.html is this case I load all components relative to the base directory which seems to work fine.

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: Nested .html pages have a problem loading amber when amber is installed by bower.

Herby Vojčík
This is a known problem, there was a discussion in #717 showing possible solutions.

Thomas Rake wrote:

> It seems nested .html pages have a problem loading amber when amber is
> installed by bower.
>
> I made and attempt to make the web examples work by removing the
> vendor/amber submodule and loading amber by bower. I added a
> bower.json to load amber 0.12.1.
>
> Here is my troubled code:
>
> https://github.com/tomrake/amber-example-webapps/tree/component-failure
>
> You need bower installed and need to run bower install. Execute
> start.sh or start.bat to start the server. Then browse
>
> http://localhost:4000/hello/index.html
>
> to see the problem which is require is trying to load jquery.min,js
> and codemirror the bower_components directory inside hello/
>
> http://localhost:4000/hello.html is this case I load all components
> relative to the base directory which seems to work fine.
>
> --
> You received this message because you are subscribed to the Google
>
 Groups "amber-lang" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [hidden email].
> For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.