Coder Social home page Coder Social logo

change-emitter's Issues

"babel" field in package.json breaks React Native and potentially other libraries

Hi @acdlite,

I started using recompose in a React Native app but the packager wasn't running and throwing the following error:

> Error: Couldn't find preset "es2015" relative to directory "./node_modules/change-emitter"
>     at ./node_modules/babel-core/lib/transformation/file/options/option-manager.js:321:17
>     at Array.map (native)
>     at OptionManager.resolvePresets (./node_modules/babel-core/lib/transformation/file/options/option-manager.js:305:20)
>     at OptionManager.mergePresets (./node_modules/babel-core/lib/transformation/file/options/option-manager.js:288:10)
>     at OptionManager.mergeOptions (./node_modules/babel-core/lib/transformation/file/options/option-manager.js:264:14)
>     at OptionManager.init (./node_modules/babel-core/lib/transformation/file/options/option-manager.js:383:12)
>     at File.initOptions (./node_modules/babel-core/lib/transformation/file/index.js:223:65)
>     at new File (./node_modules/babel-core/lib/transformation/file/index.js:140:24)
>     at Pipeline.transform (./node_modules/babel-core/lib/transformation/pipeline.js:46:16)
> TransformError: ./node_modules/change-emitter/lib/index.js: Couldn't find preset "es2015" relative to directory "./node_modules/change-emitter"

React Native doesn't like it when there are other .babelrcs that don't have the React Native presets (facebook/react-native#8296) and it looks like it doesn't like this either. I double checked the issue was indeed from change-emitter by remove the field in the package.json and indeed it was.

Is it possible to make this small fix? I wouldn't mind doing a PR myself and moving the settings to a .babelrc.

๐Ÿบ

EDIT: Should I maybe reference this issue in the RN repo as well?

LICENSE file should be included in npm bundle

The license text is currently not provided with the npm bundle.
In order to allow automation tools like license-webpack-plugin to pick it up, it should be included there.
Also the license states: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
This includes the npm registry.

LICENSE file

Hello,

Would you mind adding a LICENSE file for the project?

The source repository for change-emitter 0.1.2 could not be determined

While trying to include change-emitter NPM package in webjars.org it encounters an error:

The source repository for change-emitter 0.1.2 could not be determined but is required to published to Maven Central. This will need to be fixed in the project's package metadata.
If you feel you have reached this failure in error, please file an issue: https://github.com/webjars/webjars/issues

It seems like the package.json does not properly points to the repo.
On the NPM package information page the link to git repository is missing as well.

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.