Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cache bug with TypeScript + dotenv #2480

Closed
hirochachacha opened this issue Dec 30, 2018 · 2 comments
Closed

cache bug with TypeScript + dotenv #2480

hirochachacha opened this issue Dec 30, 2018 · 2 comments
Labels

Comments

@hirochachacha
Copy link

🐛 bug report

I was using TypeScript + dotenv.
I changed .env file, but parcel didn't recognize that change even when I restarted parcel.

🎛 Configuration (.babelrc, package.json, cli command)

None.

🤔 Expected Behavior

alert('bar')

😯 Current Behavior

alert('foo')

💁 Possible Solution

I guess that this is cache bug.

🔦 Context

💻 Code Sample

index.ts

const process = require("process");

alert(process.env.MSG);

index.html

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title></title>
  <script src="./index.ts"></script>
</head>
<body>

</body>
</html>

.env

MSG=foo
MSG=bar

🌍 Your Environment

Software Version(s)
Parcel 1.11.0
Node v11.5.0
npm/Yarn Yarn 1.12.3
Operating System macOS
@jessicard
Copy link

I am also seeing this issue 🙋

@mischnic
Copy link
Member

I am also seeing this issue 🙋

This should be fixed in the next release

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

No branches or pull requests

4 participants