Giter Club home page Giter Club logo

Comments (8)

justnewbee avatar justnewbee commented on May 28, 2024 19

there was no rule for mjs files in my webpack config, so i added this in module.rules

  {
      test: /\.mjs$/,
      include: /node_modules/,
      type: 'javascript/auto',
      resolve: {
        fullySpecified: false
      }
    }

and it worked

image

i saw this solution here https://issuehunt.io/r/storybookjs/storybook/issues/14938

from event-target-shim.

zraly avatar zraly commented on May 28, 2024 6

I solved it using

mix.options({
	legacyNodePolyfills: false
});

from event-target-shim.

mysticatea avatar mysticatea commented on May 28, 2024

Hmm. This package doesn't depend on process/browser in production builds. I suspect that your webpack.config.js has a problem.

from event-target-shim.

xptodevx avatar xptodevx commented on May 28, 2024

its happening and I can't found a solution yet. this is very hard and deceptive.

from event-target-shim.

xic911appasaheblakade avatar xic911appasaheblakade commented on May 28, 2024

where write?

from event-target-shim.

bhavyarustgi-zomato avatar bhavyarustgi-zomato commented on May 28, 2024

Thankyou so much but any idea why is this happening?

from event-target-shim.

FacuBozzi avatar FacuBozzi commented on May 28, 2024

there was no rule for mjs files in my webpack config, so i added this in module.rules

  {
      test: /\.mjs$/,
      include: /node_modules/,
      type: 'javascript/auto',
      resolve: {
        fullySpecified: false
      }
    }

and it worked

image

i saw this solution here https://issuehunt.io/r/storybookjs/storybook/issues/14938

How do you even come up with a solution like this? Genuinely asking lol

from event-target-shim.

premkumarsevugan avatar premkumarsevugan commented on May 28, 2024

I solved it using

mix.options({
	legacyNodePolyfills: false
});

Thank God. I struggled a lot with this error. Thank you man ❤️.

from event-target-shim.

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.