Skip to content
This repository has been archived by the owner on Jul 8, 2020. It is now read-only.

Import * #50

Open
andreechristian opened this issue Oct 12, 2018 · 3 comments
Open

Import * #50

andreechristian opened this issue Oct 12, 2018 · 3 comments

Comments

@andreechristian
Copy link

I want to import ALL of available variables by using
import * as environments from "react-native-dotenv"
But it return an error

cannot read property "name" of undefined

@chrise86
Copy link

@andreechristian did you manage to resolve this?

@ammichael
Copy link

No solution for this?

@juliandramirez
Copy link

This is a babel module; I would assume that in some part of its code it actually replaces variable.name (which is undefined in this case) with the corresponding value during the build process. Hence the * syntax can not be supported.

Note: I have not analyzed the source code, I'm just guessing based on my knowledge on how this package works

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants