Skip to content

Fix dotenv package error#1953

Merged
DeMoorJasper merged 1 commit into
parcel-bundler:masterfrom
subhero24:fix-dotenv-error
Aug 28, 2018
Merged

Fix dotenv package error#1953
DeMoorJasper merged 1 commit into
parcel-bundler:masterfrom
subhero24:fix-dotenv-error

Conversation

@subhero24

Copy link
Copy Markdown
Contributor

This fixes #1440. Package "dotenv" does something like "process.env.hasOwnProperty( ... )".
Parcel expects a value property lookup on process.env, not a function call. So valueToNode fails if it was called with a function like "hasOwnProperty".

NPM package "dotenv" does something like "process.env.hasOwnProperty( ... )".
Parcel expects a value property lookup on process.env, not a function call. So valueToNode fails if it was called with a function like "hasOwnProperty".
@DeMoorJasper DeMoorJasper merged commit 304c860 into parcel-bundler:master Aug 28, 2018
@subhero24 subhero24 deleted the fix-dotenv-error branch August 28, 2018 18:06
devongovett pushed a commit that referenced this pull request Oct 15, 2018
This fixes #1440. Package "dotenv" does something like "process.env.hasOwnProperty( ... )".
Parcel expects a value property lookup on process.env, not a function call. So valueToNode fails if it was called with a function like "hasOwnProperty".
devongovett pushed a commit that referenced this pull request Oct 15, 2018
This fixes #1440. Package "dotenv" does something like "process.env.hasOwnProperty( ... )".
Parcel expects a value property lookup on process.env, not a function call. So valueToNode fails if it was called with a function like "hasOwnProperty".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MemberExpressions attempts to convert process.env.hasOwnProperty to a node

2 participants