-
Notifications
You must be signed in to change notification settings - Fork 603
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
"Unexpected Token" error with v4 and code-surfer #670
Comments
It seems to be a problem when using For example, this deck fails: import Component from "./component"
## Hi When // component.js
import React from "react";
import { useSteps } from "mdx-deck";
export default props => {
const length = 4;
const step = useSteps(length);
return (
<h2>
The current step is {step}/{length}
</h2>
);
}; |
So I sort of fixed it so far. I was getting an error about webpack, so I added a silly webpack rule (sorry I don't really know what I'm doing):
CodeSurfer isn't working entirely right, but at least it's compiling. |
Okay, downgrading to v3 solved my CodeSurfer problems, at least. I think it's something to do with the gatsby theme, because in a standalone, CodeSurfer and v4 work fine together. |
👋 Hey there!
I just threw together a sample project with v4/gatsby and code-surfer@v3. When I attempted to run
gatsby develop
I got this errorIt seems to be related to code-surfer, though the error being printed is pointing to mdx-deck, so I figured I'd open an issue here and on code-surfer's repo.
Below is a sample project that should be able to recreate the error.
Sample Project: https://github.com/mhartington/mdx-deck-v4-issue
The text was updated successfully, but these errors were encountered: