acdlite / change-emitter Goto Github PK
View Code? Open in Web Editor NEWListen for changes. Like an event emitter that only emits a single event type. Really tiny.
Listen for changes. Like an event emitter that only emits a single event type. Really tiny.
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 .babelrc
s 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?
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.
Hello,
Would you mind adding a LICENSE file for the project?
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.