-
-
Notifications
You must be signed in to change notification settings - Fork 172
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
can't display code while create project with npx create-code-surfer-deck #66
Comments
Have you tried using raw-loader instead of file-loader? |
Yes..
|
Does it also happen when you use the Code component without importing code from another file? Maybe it's the Code component that is broken. |
This is happening to me as well when I import from files. But it worked before. |
I haven't tried it yet, but that could be the reason. The last version of mdx is probably wrapping the Code element making code surfer fail. I thought I pinned the versions to avoid this kind of problems, but I'm bad with dependencies. If anyone wants to send a PR to fix it in create-code-surfer-deck I'll merge it, if not I'm updating it to v3 soon. |
Should be fixed in v3 (see https://codesurfer.pomb.us/#import-code) |
When I create a project using the npx create-code-surfer-deck command and there is an error like this when I use code like this:
<Code code = {require ("!! file-loader! ./ codes / fetchIntro / callFetch"). default} />
and error is :
TypeError: Cannot read property 'dimensions' of undefined
fyi:
Previously I made a project using the npx create-code-surfer-deck command and it worked fine
The text was updated successfully, but these errors were encountered: