Skip to content

No syntax highlighting after creating a production build with create-react-app #263

@talhabalaj

Description

@talhabalaj

Describe the bug
Styles are not applied to the <code> in the production build that's not the case when I'm using dev server.

To Reproduce
Steps to reproduce the behavior:

  1. Use create-react-app to create project using typescript template (idk if template matters)
  2. Use any of the syntax highlighter
  3. Use npm start build
  4. See the error

Expected behavior
Styles should be applied.

Screenshots
In dev:
image
In Production:
image

Desktop (please complete the following information):

  • OS: Linux
  • Browser Chrome
  • Version 83

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions