Altera caminho de criação do arquivo css.#90
Open
Joaolpridolficarvalho wants to merge 1 commit into
Open
Conversation
Coverage report
Test suite run success221 tests passing in 21 suites. Report generated by 🧪jest coverage report action from ed2cab9 |
Contributor
|
@Joaolpridolficarvalho Eu não acho que essa PR seja necessária, até porque me parece pela mensagem de erro ( |
Contributor
Author
Testei. O problema deve estar na forma como o Express está servindo a página. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Descrição
Esta PR tem como objetivo corrigir o erro
Refused to apply style from 'http://localhost:3000/estilo.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabledque ocorre em rotas que retornam páginas LMHT. O problema está relacionado à forma como o Express lida com rotas que retornam páginas LMHT, resultando em um erro 500 ao tentar acessar essas rotas.Alterações
publico/css/estilo.cssparapublico/estilo.css, garantindo que o arquivo CSS seja servido corretamente.Ganhos
Com essa alteração, o erro de MIME type será resolvido, permitindo que as páginas LMHT sejam carregadas corretamente com o estilo aplicado.
Fix #89