Giter Club home page Giter Club logo

Comments (4)

isaac-mason avatar isaac-mason commented on May 22, 2024

Hi, thanks for the issue & reproduction!

Right now recast-navigation-js only has an ESM build, so importing it in a non-esm project has to be done like this: https://github.com/isaac-mason/recast-navigation-js/blob/de28866dec263433db34799592a5a33808ea511c/examples/node-cjs-recast-navigation-example/src/index.js

I acknowledge this isn't ideal though. I want to support the wider r3f community, many of which use CJS still via tools like react-scripts and parcel, so I'm working on adding cjs builds now.

from recast-navigation-js.

isaac-mason avatar isaac-mason commented on May 22, 2024

This should get fixed by 82a1bb1 and 9b8ea41

These will be released shortly

from recast-navigation-js.

isaac-mason avatar isaac-mason commented on May 22, 2024

In v0.9.3 support for react-scripts and parcel (and others) should be fixed.

Interestingly, there are still issues importing recast-navigation in the browser codesandbox.

Downloading the sandbox and running it locally, or using a cloud sandbox, there's no issues though: https://codesandbox.io/p/sandbox/recast-navigation-react-scripts-example-8wy6hh

from recast-navigation-js.

isaac-mason avatar isaac-mason commented on May 22, 2024

Given this looks like a CodeSandbox-specific issue, I'll close this, and we can track the fix for CodeSandbox here: #145

from recast-navigation-js.

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.