Prism not working on deployment
See original GitHub issueDescribe the bug Prism works on development, but not on deployment with netlify.
To Reproduce Steps to reproduce the behavior:
- Shadowed
src/gatsby-plugin-theme-ui/components.ts
:
import Prism from '@theme-ui/prism'
const components = {
pre: props => props.children,
code: Prism,
}
export default components
Also defined the style in src/gatsby-plugin-theme-ui/index.ts
:
import nightOwl from '@theme-ui/prism/presets/night-owl.json';
export default {
pre: {
...nightOwl,
fontFamily: `"Operator Mono", monospace`,
fontSize: '0.9rem',
tabSize: 4,
hyphens: `none`,
overflow: `auto`,
borderRadius: 6,
p: 3,
my: 4
},
}
- Works on localhost:8000, but not deployment. To be clear, the font family does change, but not the background colour.
Screenshots Screenshot below shows what I mean. Font family is correct, but background colour hasnโt changed:
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Prism Central (PC) 1-click deployment fails to complete
Prism Central (PC) deployment via the Prism 1-click method fails to complete and overall status shows "Failed". Get error as below in Prism...
Read more >Deploying Applications Using the Prism Library for WPF
To successfully move a Prism application into production, you need to plan for deployment as part of the design process of your application....
Read more >Standalone deployment - SS&C Blue Prism | Docs
An overview of the steps typically required to complete a standalone deployment are provided below. If problems are experienced whilst installing,ย ...
Read more >Prism Deploy - New Boundary Technologies
Prism Deploy ยฎ deploys software and administrative tasks to multiple computers ... Post-rollout visits to fix problems are a thing of the past....
Read more >How to deploy a Prisma app to Vercel
Learn how to deploy to Vercel a Next.js app that uses a serverless REST API in ... This can be a problem if...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok I finally got it working and prism is working as normal. Hereโs what I did:
And fixed unmet/incorrect peer dependencies:
@mrmartineau So i deleted yarn.lock and node_modules and reinstalled the dependencies again. However, deployment via netlify returned a build failure: