Giter Site home page Giter Site logo

hazy's People

Contributors

slurmulon avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

hazy's Issues

npm install fails with babel error

I'm getting the following error when locally installing hazy:

> [email protected] build /var/www/my-project/node_modules/.staging/hazy-fa1f4369654be2f566535a0443dad8bf
> node ./node_modules/.bin/babel src --out-dir lib

ReferenceError: [BABEL] src/hazy.js: Unknown option: /var/www/my-project/.babelrc.presets
    at Logger.error (/var/www/my-project/node_modules/.staging/hazy-fa1f4369654be2f566535a0443dad8bf/node_modules/babel-core/lib/transformation/file/logger.js:58:11)
    at OptionManager.mergeOptions (/var/www/my-project/node_modules/.staging/hazy-fa1f4369654be2f566535a0443dad8bf/node_modules/babel-core/lib/transformation/file/options/option-manager.js:126:29)
    at OptionManager.addConfig (/var/www/my-project/node_modules/.staging/hazy-fa1f4369654be2f566535a0443dad8bf/node_modules/babel-core/lib/transformation/file/options/option-manager.js:107:10)
    at OptionManager.findConfigs (/var/www/my-project/node_modules/.staging/hazy-fa1f4369654be2f566535a0443dad8bf/node_modules/babel-core/lib/transformation/file/options/option-manager.js:168:35)
    at OptionManager.init (/var/www/my-project/node_modules/.staging/hazy-fa1f4369654be2f566535a0443dad8bf/node_modules/babel-core/lib/transformation/file/options/option-manager.js:229:12)
    at File.initOptions (/var/www/my-project/node_modules/.staging/hazy-fa1f4369654be2f566535a0443dad8bf/node_modules/babel-core/lib/transformation/file/index.js:147:75)
    at new File (/var/www/my-project/node_modules/.staging/hazy-fa1f4369654be2f566535a0443dad8bf/node_modules/babel-core/lib/transformation/file/index.js:137:22)
    at Pipeline.transform (/var/www/my-project/node_modules/.staging/hazy-fa1f4369654be2f566535a0443dad8bf/node_modules/babel-core/lib/transformation/pipeline.js:164:16)
    at Object.exports.transform (/var/www/my-project/node_modules/.staging/hazy-fa1f4369654be2f566535a0443dad8bf/node_modules/babel/lib/babel/util.js:40:22)
    at Object.exports.compile (/var/www/my-project/node_modules/.staging/hazy-fa1f4369654be2f566535a0443dad8bf/node_modules/babel/lib/babel/util.js:49:20)

It looks like it's because I'm using a newer version of Babel that has an option in my .babelrc that isn't supported by Babel 5. Do you think it would make sense to publish the lib dir and remove the preinstall script? It looks like you already have the build as part of prepublish, but the lib dir isn't in the npm package since it's in .gitignore.

Happy to submit a PR if you want!

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.