Giter Site home page Giter Site logo

Comments (3)

nuxy avatar nuxy commented on June 11, 2024

Looks like a dependency is not installed. Please confirm the following:

$ cd ./react-slot-machine-gen
$ npm install
$ npm run build
$ npm run webpack

Which should result with the output below.


> [email protected] webpack
> node_modules/.bin/webpack-cli demo/index.js --config demo/webpack.config.js --output-path demo/assets

Hash: 6669e11d35a1f51f0e76
Version: webpack 4.43.0
Time: 1138ms
Built at: 05/04/2022 9:32:37 PM
     Asset      Size  Chunks             Chunk Names
bundle.css  1.52 KiB    main  [emitted]  main
 bundle.js     1 MiB    main  [emitted]  main
Entrypoint main = bundle.css bundle.js
[./demo/index.js] 4.73 KiB {main} [built]
[./dist/react-slot-machine.js] 3.92 KiB {main} [built]
    + 19 hidden modules
Child mini-css-extract-plugin node_modules/css-loader/dist/cjs.js!node_modules/slot-machine-gen/dist/slot-machine.min.css:
    Entrypoint mini-css-extract-plugin = *
       2 modules

If this still doesn't work the issue may be environment specific.

from react-slot-machine-gen.

nuxy avatar nuxy commented on June 11, 2024

At second glance of the error you provided above. It seems you are building the library from within your own project.

That said, make sure your project .babelrc has defined the following presets and you should be good to go.

{
  "presets": [
    "@babel/preset-env",
    "@babel/preset-react"
  ]
}

Closing this issue.

from react-slot-machine-gen.

darshanhande11 avatar darshanhande11 commented on June 11, 2024

@nuxy This error is still prevalent when installing react-slot-machine-gen from npm and trying to use it in a react project. I have tried both of the fixes you suggested above but the error doesn't go away. Any other fix, you might suggest?

from react-slot-machine-gen.

Related Issues (5)

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.