Flow does not seem to be finding the shipped flow type definitions after upgrading to v6. I can get flow to find the type definitions by running:
cp node_modules/immer/dist/{immer,index}.js.flow
https://github.com/esturcke/immer-flow-bug
-
Run flow
yarn flow
Warning βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ src/App.js:3:8
Importing from an untyped module makes it any and is not safe! Did you mean to add // @flow to the top of immer?
(untyped-import)
1β // @flow
2β import React from "react";
3β import produce from "immer";
4β import logo from "./logo.svg";
5β import "./App.css";
6β
Found 1 warning
β¨ Done in 4.57s.
No flow warnings.
- Immer version: 6.0.2