Skip to content
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

Usage in nextjs app withouth mdx deck #90

Open
hardvain opened this issue May 30, 2020 · 2 comments
Open

Usage in nextjs app withouth mdx deck #90

hardvain opened this issue May 30, 2020 · 2 comments

Comments

@hardvain
Copy link

Hello, Is it possible to use this in a nextjs app preferably without the dependency of mdx-deck? I am fine with adding mdx deck as well but I was not able to get it work with nextjs app

@pomber
Copy link
Owner

pomber commented May 30, 2020

You could try to use the @code-surfer/standalone package, but it isn't documented. There are some usage examples here: https://github.com/pomber/code-surfer/tree/master/sites/book/src

(for something more ambitious wait for https://github.com/code-hike/codehike)

@JakubKoralewski
Copy link

JakubKoralewski commented Jun 10, 2020

I'm getting this error after adding @code-surfer/standalone as a dev dependency 😕:

   
error - ./node_modules/@code-surfer/themes/dist/themes.esm.js
Module not found: Can't resolve 'theme-ui' in '.\node_modules\@code-surfer\themes\dist'
Error: Cannot find module 'theme-ui'

EDIT: Installing theme-ui fixed the problem 😅

Although I'm having issues styling the code. The code elements seems to be scaled using transform is there a way to disable this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants