Git Product home page Git Product logo

Comments (8)

mmacarth avatar mmacarth commented on June 13, 2024 1

For others, fyi. We use webpack and we'd solved the issue by adding the following rule:

           {
              test: /\.js$/,
              include: /node_modules\/react-share/,
              resolve: {
                fullySpecified: false,
              },
            },

This matches .js files in node_modules/react-share and sets fullySpecified to false as there's no extension on the import from jsx-runtime in react-share.

On windows, the include regex wasn't working as it includes a "/". Instead using:

     include: path.resolve('node_modules', 'react-share'),

does match the windows formatting for path and the build succeeds.

from react-share.

nygardk avatar nygardk commented on June 13, 2024

Hello! Are you on React 18?

from react-share.

himavan avatar himavan commented on June 13, 2024

Hey! I'm react 17.0.2

from react-share.

mmacarth avatar mmacarth commented on June 13, 2024

Hello, we have the same issue. On 17.0.2 as well. It seems to only happen when running on Windows, not on Mac or Ubuntu.

from react-share.

loishobe avatar loishobe commented on June 13, 2024

Hello is there any workaround or fix for this?

from react-share.

monecchi avatar monecchi commented on June 13, 2024

So sad :( Moving to other library until this is solved...

from react-share.

sudhanshutech avatar sudhanshutech commented on June 13, 2024

same happening for us

from react-share.

zachandblue avatar zachandblue commented on June 13, 2024

bummer

from react-share.

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.