Giter VIP home page Giter VIP logo

babel7-tmp's Introduction

Lerna with Babel 7 sample

pck1 imports pck2 which does import bluebird.

See https://github.com/Raigen/babel6-tmp for Babel 6 version.

npm install
$ npm start

> [email protected] start C:\Users\foellerich\Git\babel7-tmp
> lerna exec --scope pck1 -- npm start

lerna info version 2.7.0
lerna info scope pck1

> [email protected] start C:\Users\foellerich\Git\babel7-tmp\packages\pck1
> babel-node index.js

C:\Users\foellerich\Git\babel7-tmp\packages\pck2\server.js:1
(function (exports, require, module, __filename, __dirname) { import Bluebird from 'bluebird'
                                                              ^^^^^^

SyntaxError: Unexpected token import
    at createScript (vm.js:80:10)
    at Object.runInThisContext (vm.js:139:10)
    at Module._compile (module.js:607:28)
    at Module._compile (C:\Users\foellerich\Git\babel7-tmp\packages\pck1\node_modules\pirates\lib\index.js:91:24)
    at Module._extensions..js (module.js:654:10)
    at Object.newLoader [as .js] (C:\Users\foellerich\Git\babel7-tmp\packages\pck1\node_modules\pirates\lib\index.js:96:7)
    at Module.load (module.js:556:32)
    at tryModuleLoad (module.js:499:12)
    at Function.Module._load (module.js:491:3)
    at Module.require (module.js:587:17)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `babel-node index.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\foellerich\AppData\Roaming\npm-cache\_logs\2018-01-12T11_26_51_749Z-debug.log
lerna ERR! exec Errored while executing 'npm start' in 'pck1'
lerna ERR! execute callback with error
lerna ERR! Error: spawn npm ENOENT
lerna ERR!     at notFoundError (C:\Users\foellerich\Git\babel7-tmp\node_modules\cross-spawn\lib\enoent.js:11:11)
lerna ERR!     at verifyENOENT (C:\Users\foellerich\Git\babel7-tmp\node_modules\cross-spawn\lib\enoent.js:46:16)
lerna ERR!     at ChildProcess.cp.emit (C:\Users\foellerich\Git\babel7-tmp\node_modules\cross-spawn\lib\enoent.js:33:19)
{ Error: spawn npm ENOENT
    at notFoundError (C:\Users\foellerich\Git\babel7-tmp\node_modules\cross-spawn\lib\enoent.js:11:11)
    at verifyENOENT (C:\Users\foellerich\Git\babel7-tmp\node_modules\cross-spawn\lib\enoent.js:46:16)
    at ChildProcess.cp.emit (C:\Users\foellerich\Git\babel7-tmp\node_modules\cross-spawn\lib\enoent.js:33:19)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
  errno: 'ENOENT',
  code: 'ENOENT',
  syscall: 'spawn npm',
  killed: false,
  stdout: null,
  stderr: null,
  failed: true,
  signal: null,
  cmd: 'npm start',
  timedOut: false,
  exitCode: 1 }
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `lerna exec --scope pck1 -- npm start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\foellerich\AppData\Roaming\npm-cache\_logs\2018-01-12T11_26_51_864Z-debug.log

babel7-tmp's People

Contributors

raigen avatar

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.