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.

`verboseName` in dev-mode modules is no longer verbose

See original GitHub issue

Do you want to request a feature or report a bug?

Bug

What is the current behavior?

In order to perform manual code-splitting with React Native’s ‘unbundle’ command, it’s necessary to collect and transform the names of modules that have loaded after app startup. (The process is described in detail in the RN docs here.)

In RN v0.56.0, the module objects returned by require.getModules() no longer contain a full path in the verboseName field. Instead, they contain just the file name, which is insufficient for transforming back to module paths, as described here.

What is the expected behavior?

The expected behavior is that verboseName contains the path used to require the module.

Please provide your exact Metro configuration and mention your Metro, node, yarn/npm version and operating system.

React Native v0.56.0 Metro v0.38.3

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
rafecacommented, Jul 26, 2018

Thanks for the report! This is indeed an incorrect behaviour: I’m going to fix it to display the relative path based on the project root instead.

0reactions
jamesreggiocommented, Aug 2, 2018

Awesome. Left a single comment, but generally LGTM. I don’t know how changes are flagged as breaking for the release notes, but that’s the only other thing I’d request that you do.

Many, many thanks for the quick turnaround on this!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I enable developer/debug mode? - Drupal Answers
On a development site I would suggest uncommenting the following lines in the settings.php file. emacs sites/default/settings.php if (file_exists(__DIR__ .
Read more >
How to implement the --verbose or -v option into a script?
My suggestion is to use a function. But rather than putting the if in the function, which you might be tempted to do,...
Read more >
Python Development Mode — Python 3.11.1 documentation
The Python Development Mode introduces additional runtime checks that are too expensive to be enabled by default. It should not be more verbose...
Read more >
[GWT] Documentation - Compile & Debug
DevMode found in gwt-dev.jar . Important: If you are not using a generated launch config, be aware that GWT development mode looks for...
Read more >
latest - Environment Modules
Enable automated module handling mode on sub-commands that load or unload modulefiles. ... Multiple -D options increase the debug verbosity.
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