mnasyrov / date-fns-flow-issue-1801

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Demo for issue #1801 in date-fns

date-fns/date-fns#1801

Steps to reproduce:

npm install
npx flow

Output:

Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ index.js:3:20

Dependencies of a `@flow strict` module must also be `@flow strict`!
(`nonstrict-import`)

   3│ const { format } = require("date-fns");
                         ^^^^^^^^^^^^^^^^^^^



Found 1 error

About


Languages

Language:JavaScript 100.0%