Giter Site home page Giter Site logo

Comments (1)

bjyoungblood avatar bjyoungblood commented on June 11, 2024

I pulled down the example at that commit to try to see what's going on.

It looks to me like your mocha tests are correctly using the CommonJS build, but the karma tests are pulling in the ES6 build (I think this is because webpack is looking at the module field instead of main in our package.json).

Since 4.1.0 and 4.1.1 are working as they're supposed to for anyone using ES6 modules, I'm hesitant to revert that change, despite the fact that it seems to be causing issues for other downstream users.

I was able to fix the issue in tableschema-js by aliasing to the cjs build in the webpack config:

resolve: {
  alias: {
    'es6-error': path.join(__dirname, 'node_modules/es6-error/lib/index.js')
  }
},

Sorry for the inconvenience. Seems like every other release causes issues with a different module bundler / compiler / environment. I'd love to have integration tests for some of the more common environments, but I just don't have the time these days. 😕

from es6-error.

Related Issues (18)

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.