Code Monkey home page Code Monkey logo

Comments (2)

515hikaru avatar 515hikaru commented on September 3, 2024

Array#flat は Node.js 10 では使えないらしい。

Babel と Jest の設定をちゃんとすれば動くのではないかと思ったが、一旦は無視することにした

% npm run test 

> [email protected] test /home/hikaru/ghq/src/github.com/515hikaru/pnovel
> jest

 FAIL  __tests__/parser_test.js
  ● parser › parse testing

    TypeError: l.flat is not a function

      1030 | 
      1031 |     function makeLine(l) {
    > 1032 |       const chars = l.flat(2)
           |                       ^
      1033 |       return chars.join("").trim().replace(/(\r\n|\n|\r)/gm, "")
      1034 |     }
      1035 | 

      at makeLine (parser/parser.js:1032:23)
      at peg$c5 (parser/parser.js:158:21)
      at peg$parsesentence (parser/parser.js:694:14)
      at peg$parseblock (parser/parser.js:384:16)
      at peg$parsedoc (parser/parser.js:357:10)
      at peg$startRuleFunction (parser/parser.js:347:10)
      at peg$parse (parser/parser.js:1042:16)
      at Object.test (__tests__/parser_test.js:53:12)

 PASS  __tests__/eval_test.js

Test Suites: 1 failed, 1 passed, 2 total
Tests:       1 failed, 5 passed, 6 total
Snapshots:   0 total
Time:        1.262 s
Ran all test suites.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] test: `jest`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] test 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!     /home/hikaru/.npm/_logs/2020-05-26T14_26_11_918Z-debug.log

from pnovel.

515hikaru avatar 515hikaru commented on September 3, 2024

無理にしなくて良い気がしてきた。対応しない。

from pnovel.

Related Issues (20)

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.