Coder Social home page Coder Social logo

Comments (7)

simpslandyy avatar simpslandyy commented on June 9, 2024 1

In your tsconfig.json, what is moduleResolution set to? It should be set to "node16" or "nodenext" (or "bundler" if you're on TS >=5) for TypeScript to support import paths like @liveblocks/react-comments/primitives.

Oh that worked like a charm. Thank you!

from liveblocks.

marcbouchenoire avatar marcbouchenoire commented on June 9, 2024

It's definitely not intentional, we're looking into it. Thanks for reporting!

from liveblocks.

marcbouchenoire avatar marcbouchenoire commented on June 9, 2024

In your tsconfig.json, what is moduleResolution set to? It should be set to "node16" or "nodenext" (or "bundler" if you're on TS >=5) for TypeScript to support import paths like @liveblocks/react-comments/primitives.

from liveblocks.

ntourne avatar ntourne commented on June 9, 2024

@marcbouchenoire: I got the same issue on my Next.js 14 app using typescript v4.x
I already tried to update moduleResolution on tsconfig.json using "node16" or "nodenext" but I got the same issue.
Any other solution? Thanks.

from liveblocks.

marcbouchenoire avatar marcbouchenoire commented on June 9, 2024

@ntourne Do you get the exact same error with "node16"/"nodenext", or do you get a different one?

from liveblocks.

ntourne avatar ntourne commented on June 9, 2024

@ntourne Do you get the exact same error with "node16"/"nodenext", or do you get a different one?

@marcbouchenoire: Thanks for the reply.
Yes, same error using "node16" / "nodenext". Also, I'm using "next" v13.4.16 (same as this example).
Any other thing to test?

from liveblocks.

marcbouchenoire avatar marcbouchenoire commented on June 9, 2024

@ntourne Not really sure since it seems to be pretty specific to your setup, would it be possible to make a public (GitHub, CodeSandbox, or similar) reproduction?

from liveblocks.

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.