Giter VIP home page Giter VIP logo

Comments (3)

bigtimebuddy avatar bigtimebuddy commented on September 3, 2024

Thanks for the tip. This has been resolved in v2.0.0-alpha (replaced Browserify with Rollup) and does a better job using fs.

from sound.

devgenerate avatar devgenerate commented on September 3, 2024

I installed the v2.0.0-alpha and continue with the same error. Is necessary an aditional configuration? Thanks

ERROR in ./node_modules/pixi-sound/dist/pixi-sound.es.min.js Module not found: Error: Can't resolve 'fs' in '/Users/davidh/Documents/Jobs/Victory/6051-T4L/node_modules/pixi-sound/dist' resolve 'fs' in '/Users/davidh/Documents/Jobs/Victory/6051-T4L/node_modules/pixi-sound/dist' Parsed request is a module using description file: /Users/davidh/Documents/Jobs/Victory/6051-T4L/node_modules/pixi-sound/package.json (relative path: ./dist) Field 'browser' doesn't contain a valid alias configuration after using description file: /Users/davidh/Documents/Jobs/Victory/6051-T4L/node_modules/pixi-sound/package.json (relative path: ./dist)

from sound.

bigtimebuddy avatar bigtimebuddy commented on September 3, 2024

I was able to suppress this error by changing my Webpack configuration. Here's an example:

module.exports = {
    entry: './src/index.js',
    output: {
        path: __dirname + '/dist',
        filename: 'bundle.js'
    },
    node: {
        fs: "empty"
    }
};

The important bit is

node: {
    fs: "empty"
}

Reference josephsavona/valuable#9 (comment)

from sound.

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.