Giter Site home page Giter Site logo

[BUG] about react-svg-worldmap HOT 6 CLOSED

yanivam avatar yanivam commented on May 27, 2024
[BUG]

from react-svg-worldmap.

Comments (6)

mteinum avatar mteinum commented on May 27, 2024

Add a file .env in your project with the following content:

GENERATE_SOURCEMAP=false

from react-svg-worldmap.

david-korecko avatar david-korecko commented on May 27, 2024

It seems that with the same issue, when we use not generating the source map, the component does not get drawn at all.

Console output:

Uncaught TypeError: Cannot read properties of undefined (reading 'forwardRef')
    at ./node_modules/react-svg-worldmap/dist/components/Region.js (Region.js:37:1)
    at options.factory (react refresh:6:1)
    at __webpack_require__ (bootstrap:24:1)
    at fn (hot module replacement:62:1)
    at ./node_modules/react-svg-worldmap/dist/index.js (index.js:14:1)
    at options.factory (react refresh:6:1)
    at __webpack_require__ (bootstrap:24:1)
    at fn (hot module replacement:62:1)
    at ./src/pages/Home.tsx (index.tsx:19:1)
    at options.factory (react refresh:6:1)

from react-svg-worldmap.

jaketoolson avatar jaketoolson commented on May 27, 2024

I'm having the same issue.

from react-svg-worldmap.

yanivam avatar yanivam commented on May 27, 2024

Sorry everyone, I have been away doing my Masters and working full time. I am going to get back to this starting tomorrow. Thanks for your patience. -Yams

from react-svg-worldmap.

yanivam avatar yanivam commented on May 27, 2024

Hey @jaketoolson , @david-korecko , @robertoattanasio , and @mteinum . The above error should be resolved in the latest version of the map on npm that I just posted. Can any of y'all check and close this issue? The issue was with the way React was imported. Thanks, Yams

from react-svg-worldmap.

yanivam avatar yanivam commented on May 27, 2024

Closing this ticket for now, let me know if the issue persists

from react-svg-worldmap.

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.