question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

After app refresh it got not updated bundle (cache?)

See original GitHub issue

Environment

MAC OS 10.14.6

"dependencies": {
    "react": "16.9.0",
    "react-native": "0.61.5"
  },
  "devDependencies": {
    "@babel/core": "^7.8.4",
    "@babel/runtime": "^7.8.4",
    "@haul-bundler/babel-preset-react-native": "^0.16.0",
    "@haul-bundler/preset-0.60": "^0.17.0",
    "@haul-bundler/cli": "^0.17.0",
    "@react-native-community/eslint-config": "^0.0.7",
    "babel-jest": "^25.1.0",
    "eslint": "^6.8.0",
    "jest": "^25.1.0",
    "metro-react-native-babel-preset": "^0.58.0",
    "react-test-renderer": "16.9.0"
  },
module.exports = {
  presets: ['module:@haul-bundler/babel-preset-react-native'],
};
import {withPolyfills, makeConfig} from '@haul-bundler/preset-0.60';

export default makeConfig({
  bundles: {
    index: {
      entry: withPolyfills('./index'),
    },
  },
});

Description

After launching app, changing code and refreshing it in simulator (cmd + r), nothing happens. Looks like bundler always sends an initial bundle, and do not updating it. If i kill bundle process and re-launch it, i will see an updated code.

Reproducible Demo

I have faced this issue with completely new project.

  1. do react-native init App
  2. install “haul” according to “Getting started” documentation
  3. change App.js
  4. press refresh

==================================

  1. open simulator image

  2. change code

  3. press refresh image

Nothing…

  1. kill process image

  2. Repeat image

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
zamotanycommented, Apr 29, 2020

Closing this issue. We’ve confirmed that this is no longer happening (at least with the default config).

1reaction
zamotanycommented, Feb 21, 2020

Yup, something is wrong. It looks like it’s not watching for changes.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Problem about bundle cache, bundles not refreshing - MSDN
Bundles are refreshing only when restart application (webconfig or dll changes). I don't would like restart my app for every changes in js...
Read more >
Bundle not updating after included file has changed (returns ...
I just had the exact same problem. I have a folder with 2 CSS files: ~/Content/main.css; ~/Content/main.min.css (pre-existing from my previous manual ...
Read more >
Apache Felix Framework Bundle Cache
When the framework is refreshed or shutdown, all revision directories are purged from the bundle cache and only the most recent revision directory...
Read more >
bundle cache - Bundler
When using gems that have different packages for different platforms, Bundler supports caching of gems for other platforms where the Gemfile has been...
Read more >
Refresh caches when dependencies are updated
Ideally, caches will be refreshed when build dependencies are updated. ... I was not able to find a way to invalidate/update the cache...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found