I have a file called constants.js. When I import it as import { Foo } from "constants" I get an "Attempted import error: \'Foo\' is
constants.js
import { Foo } from "constants"