-
Notifications
You must be signed in to change notification settings - Fork 27
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
Gatsby 4: Type with name "GRVSCCodeSpan" does not exists #174
Comments
I don’t currently have the bandwidth to update this for Gatsby 4, but gladly review a PR for it. |
@andrewbranch Maybe someone from the Gatsby user collective can help ? |
I bet you can bypass all the gatsby stuff and just use the remark plugin directly. I'm trying this right now. Anyone else have success? |
Yeah that seems to have worked! In your gatsby-config.js, remove the plugin from remarkPlugins: [
[require('gatsby-remark-vscode').remarkPlugin, {
theme: `Cobalt2`,
extensions: [`theme-cobalt2`],
}]
], |
I think this may be from using https://www.gatsbyjs.com/docs/reference/release-notes/migrating-from-v3-to-v4/#bundling-external-files |
Where unable to make this approach work. Might be me wrongly configuring webpack 5 :') Same issue both when resolving all the packages or just ignoring them like so exports.onCreateWebpackConfig = ({ actions }) => {
actions.setWebpackConfig({
resolve: {
fallback:{
fs: false,
os: false,
path: false,
zlib: false,
crypto: false,
stream: false,
constants: false,
module: false
}
}
})
} Something i noticed:
And of course: The page where i try to add the plugin |
Hey folks, gave it a try after reading @graysonhicks suggestions Check it out if you would like: #185 |
It works but I cant change theme in here Gatsby version: 4.5.4
|
When attempting to build my site with Gatsby 4.0.0 I get this error:
The text was updated successfully, but these errors were encountered: