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.

Error building project ("transforming index.android.js took longer than 301 seconds.")

See original GitHub issue

Hello, everybody. Everything was absolutely fine, but now I can’t build my project anymore and every time I try I see the following error:

… [10:14:28 PM] <END> Building Dependency Graph (5403ms) [node-haste] Encountered an error while persisting cache: Error: TimeoutError: transforming /Users/alwxndr/Documents/Dev/_2016/rn-app/index.android.js took longer than 301 seconds. You can adjust timeout via the ‘transformTimeoutInterval’ option at /Users/alwxndr/Documents/Dev/_2016/rn-app/node_modules/react-native/packager/react-packager/src/JSTransformer/index.js:95:28 at tryCallOne (/Users/alwxndr/Documents/Dev/_2016/rn-app/node_modules/promise/lib/core.js:37:12) at /Users/alwxndr/Documents/Dev/_2016/rn-app/node_modules/promise/lib/core.js:123:15 at flush (/Users/alwxndr/Documents/Dev/_2016/rn-app/node_modules/asap/raw.js:50:29) at _combinedTickCallback (node.js:370:9) at process._tickCallback (node.js:401:11) /Users/alwxndr/Documents/Dev/_2016/rn-app/node_modules/promise/lib/done.js:10 throw err; ^

Error: TimeoutError: transforming /Users/alwxndr/Documents/Dev/_2016/rn-app/index.android.js took longer than 301 seconds. You can adjust timeout via the ‘transformTimeoutInterval’ option at /Users/alwxndr/Documents/Dev/_2016/rn-app/node_modules/react-native/packager/react-packager/src/JSTransformer/index.js:95:28 at tryCallOne (/Users/alwxndr/Documents/Dev/_2016/rn-app/node_modules/promise/lib/core.js:37:12) at /Users/alwxndr/Documents/Dev/_2016/rn-app/node_modules/promise/lib/core.js:123:15 at flush (/Users/alwxndr/Documents/Dev/_2016/rn-app/node_modules/asap/raw.js:50:29) at _combinedTickCallback (node.js:370:9) at process._tickCallback (node.js:401:11)```

More importantly, even if I do git checkout <sha of some old commit> in my project, I can’t make it buildable. Maybe it is some cache error or something like that, but, of course, I am not sure. Brief googling didn’t help.

react-native bundle --platform ios --dev false --entry-file index.ios.js --bundle-output main.jsbundle --assets-dest ./ios doesn’t work too.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:23 (9 by maintainers)

github_iconTop GitHub Comments

6reactions
Bhullnatikcommented, Jun 29, 2016

It seems to be coming from the last version of babel/babylon. Downgrading it to 6.8.1 instead of 6.8.2 fixes the issue for me.

3reactions
rasomcommented, Oct 30, 2016

This error can appear again because of babel-plugin-transform-es2015-block-scoping@6.18.0. You can fix this by downgrading it to babel-plugin-transform-es2015-block-scoping@6.15.0

https://github.com/babel/babel/issues/4795

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error building project ("transforming index.android.js took longer ...
Error building project ("transforming index.android.js took longer than 301 seconds.") mkonicek. Moved from https://github.com/facebook/react-native/issues/ ...
Read more >
Changing index.js entryFile to index.android.js throws error
I'm starting with react-native and created a basic project. That contained index.js in its root. I wanted to make for android and after ......
Read more >
Consolidated JDK 8 Release Notes - Oracle
This page contains all of the release notes for General Availability (GA) releases and Bundled Patch Release (BPR) builds of JDK 8. Consolidated...
Read more >
2022-2023 Academic Catalog | DeVry University
o Thoroughly and logically managing projects to transform knowledge based on reasoning and reflection. o Producing desired outcomes and ...
Read more >
Using the Slack Events API
If your app is a bot listening to messages with specific trigger phrases, that event loop may play out something like: Members send...
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