Git Product home page Git Product logo

Comments (6)

pomber avatar pomber commented on May 18, 2024

Have you tried using raw-loader instead of file-loader?

from code-surfer.

aisy avatar aisy commented on May 18, 2024

Yes..
but same result,
i'm using same code with previous project like this :

<CodeSurferLayout>
   <Code
     code={"!!raw-loader!./src/codes/App.js"}
   />
</CodeSurferLayout>

from code-surfer.

pomber avatar pomber commented on May 18, 2024

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.

from code-surfer.

melcor76 avatar melcor76 commented on May 18, 2024

This is happening to me as well when I import from files. But it worked before.
I'm thinking some mdx (or other) dependencies changed when I started a new project.

from code-surfer.

pomber avatar pomber commented on May 18, 2024

I'm thinking some mdx (or other) dependencies changed when I started a new project.

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.

from code-surfer.

pomber avatar pomber commented on May 18, 2024

Should be fixed in v3 (see https://codesurfer.pomb.us/#import-code)

from code-surfer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.