Giter Site home page Giter Site logo

examples's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

examples's Issues

I can´t run npm test or npm start

Hi!

I can´t run npm test or npm start. Fresh install. Node v8.11.1 in Windows 7

PS D:\examples\react\countdown> npm test

[email protected] test D:\examples\react\countdown
bigtest run

D:\examples\react\countdown\node_modules\yargs\yargs.js:1144
else throw err
^


TypeError: Cannot read property 'toString' of null
    at getDefaultBrowser (D:\examples\react\countdown\node_modules\@bigtest\cli\dist\run\util\browser.js:19:76)
    at BrowserManager.assign.browsers.browsers.map.browser (D:\wamp\www\dred-nhd-2k18\dred-tareas\examples\react\countdown\node_modules\@bigtest\cli\dist\run\browsers\index.js:63:52)
    at Array.map (<anonymous>)
    at new BrowserManager (D:\examples\react\countdown\node_modules\@bigtest\cli\dist\run\browsers\index.js:61:26)
    at new Coordinator (D:\examples\react\countdown\node_modules\@bigtest\cli\dist\run\coordinator.js:63:20)
    at Object.handler (D:\examples\react\countdown\node_modules\@bigtest\cli\dist\run\index.js:128:11)
    at Object.runCommand (D:\examples\react\countdown\node_modules\yargs\lib\command.js:238:44)
    at Object.parseArgs [as _parseArgs] (D:\examples\react\countdown\node_modules\yargs\yargs.js:1059:30)
    at Object.parse (D:\examples\react\countdown\node_modules\yargs\yargs.js:538:19)
    at Object.<anonymous> (D:\examples\react\countdown\node_modules\@bigtest\cli\dist\index.js:24:22)

npm ERR! Test failed. See above for more details.

PS D:\examples\react\countdown> npm start

ERROR in ./src/index.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: [BABEL] D:\examples\react\countdown\src\index.js:
As of v7.0.0-beta.55, we've removed Babel's Stage presets.
Please consider reading our blog post on this decision at https://babeljs.io/blog/2018/07/27/removing-babels-stage-presets for more details. TL;DR is that it's more beneficial in the long run to explicitly add which proposals to use.

For a more automatic migration, we have updated babel-upgrade, https://github.com/babel/babel-upgrade to do this for you with "npx babel-upgrade".

If you want the same configuration as before:


{
  "plugins": [
    // Stage 2
    ["@babel/plugin-proposal-decorators", { "legacy": true }],
    "@babel/plugin-proposal-function-sent",
    "@babel/plugin-proposal-export-namespace-from",
    "@babel/plugin-proposal-numeric-separator",
    "@babel/plugin-proposal-throw-expressions",

    // Stage 3
    "@babel/plugin-syntax-dynamic-import",
    "@babel/plugin-syntax-import-meta",
    ["@babel/plugin-proposal-class-properties", { "loose": false }],
    "@babel/plugin-proposal-json-strings"
  ]
}

If you're using the same configuration across many separate projects, keep in mind that you can also create your own custom presets with whichever plugins and presets you're looking to use.

module.exports = function() {
  return {
    plugins: [
      require("@babel/plugin-syntax-dynamic-import"),
      [require("@babel/plugin-proposal-decorators"), { "legacy": true }],
      [require("@babel/plugin-proposal-class-properties"), { "loose": false }],
    ],
    presets: [
      // 
    ],
  };
};

Thanks in advance

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.