Skip to content

Can't load js file in bundle #17715

Discussion options

You must be logged in to vote

The assets need to be in the public folder of your project (the “web root”) otherwise you can't easily access them via the browser.

This happens by running console assets:install (in dev mode, preferably also with the --symlink --relative flags, because otherwise you have to call it again after each change).

This copies (or symlinks) everything from bundles/Divae/src/ProductImporterBundle/Resources/ (if this is where your bundle lives) to public/bundles/divaeproductimporter/ (the last part depends on your actual bundle name, so I just made a guess — please take a look into your public/bundles/ folder if it is right).

And this is the path you must also use in your AdminAssetListener or Pro…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@jdreesen
Comment options

Answer selected by CaptnChaos-dev
@CaptnChaos-dev
Comment options

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