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

[BUG] 404 missing static files #246

Open
SOVRON opened this issue Aug 30, 2022 · 6 comments
Open

[BUG] 404 missing static files #246

SOVRON opened this issue Aug 30, 2022 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@SOVRON
Copy link

SOVRON commented Aug 30, 2022

Versions Used
Kaffy: 0.9.2
Phoenix: 1.6.11
Elixir: 1.13.4

What's actually happening?
I have an umbrella project with a new admin app. I am getting 404 missing static files after following the installation instruction.

What should happen instead?
I expected the static files to be there by default. I even saw it work this way on https://www.youtube.com/watch?v=5E4QC842IFc

Screenshots
If applicable, add screenshots to help explain your problem.

@SOVRON SOVRON added the bug Something isn't working label Aug 30, 2022
@aesmail
Copy link
Owner

aesmail commented Aug 31, 2022

Can you see if this comment solves the problem for you?

@SOVRON
Copy link
Author

SOVRON commented Aug 31, 2022

That did the trick. Thank you!

I am now however getting 404s on loop.

[info] GET /node_modules/compass-mixins/lib/compass/typography/lists/_bullets.scss
[debug] ** (Phoenix.Router.NoRouteError) no route found for GET /node_modules/compass-mixins/lib/compass/typography/lists/_bullets.scss (EriadeAdminWeb.Router)
    (eriade_admin 0.1.0) lib/phoenix/router.ex:405: EriadeAdminWeb.Router.call/2

@aesmail
Copy link
Owner

aesmail commented Aug 31, 2022

I'm not sure if this is related to Kaffy. You might want to check your npm modules if you're using a text formatter maybe?

I'll also double check from my side just in case.

@aesmail
Copy link
Owner

aesmail commented Sep 13, 2022

@SOVRON any updates on this? I wasn't able to reproduce the issue.

@SOVRON
Copy link
Author

SOVRON commented Sep 13, 2022

@aesmail I ended up having to download the project static files locally to get it to work.

@r-tae
Copy link

r-tae commented Oct 4, 2022

I got the same error following the minimum config in an almost fresh Phoenix 1.6 project, no changes to any asset bundling.

I suspect it's caused by Phoenix's move to esbuild, @aesmail did you try to reproduce with Phoenix 1.6 (i.e. without webpack)?

It's caused by these lines in Kaffy's style.scss, just going by the installation instructions I don't see how there's any way phoenix could be serving static files from a node_modules folder:

@import "../../../../node_modules/bootstrap/scss/functions";
@import "../../../../node_modules/bootstrap/scss/variables";

/*-------------------------------------------------------------------*/
/* === Import template variables === */
@import './variables';

/*-------------------------------------------------------------------*/
/* === SCSS Compass Functions === */
@import "../../../../node_modules/compass-mixins/lib/compass";
@import "../../../../node_modules/compass-mixins/lib/animate";

/*-------------------------------------------------------------------*/
/* === Boostrap Main SCSS === */
@import "../../../../node_modules/bootstrap/scss/bootstrap";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants