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.

Assistance Migrating from Haul

See original GitHub issue

Hi All, Thank you for your work on this library (and Haul)!

I am attempting to transition to this library in an app where we are currently using Haul because of an issue I am having not being able to use flipper (or inspect network requests in Haul’s debugger). When I run npx react-native webpack-start, the server starts, but the application errors. I am really struggling to get additional data, but all I can pull up right now is this stack trace which appears to be rooting from my webpack.config.js:

Error loading webpack configuration at “/Users/swoodruff/dev/stormbreaker/apps/plant-floor/webpack.config.js”: Error: Cannot find module ‘webpack/lib/web/JsonpHelpers’ Require stack: /Users/swoodruff/dev/stormbreaker/common/temp/node_modules/.pnpm/ /Users/swoodruff/dev/stormbreaker/common/temp/node_modules/.pnpm/

I am using the template webpack.config.js recommended. The only changes I have made were

  1. I uncommented the section alias to ensure all react-native* imports are resolved to the same RN dependency. I am working in a mono repo built with rush, if that helps at all.
  2. Added a fallback for entry to ./index.js.

Any insight or help is really appreciated. I will include any more information that can be of use… I am feeling so lost right now though, I don’t have any more to add.

Thank you in advance!

EDIT: Attaching a screenshot to what I believe my issue is. On line 8, it is requiring the file JsonHelpers, but I do not see that file in node_modules/webpack/lib/web.

Screen Shot 2021-03-31 at 11 37 29 AM

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:24 (11 by maintainers)

github_iconTop GitHub Comments

zamotanycommented, Apr 2, 2021

Thanks for the info, I’ll take a closer look at it again tomorrow. FYI you can actually put Webpack config in a subdirectory - RNWT has the same resolution as Webpacka CLI:

woodrufscommented, Mar 31, 2021

@zamotany - thanks so much for the quick reply. I was able to get by this after using the steps you provided. The only other issue I came across was another missing dependency I had to install. After installing babel-loaded, I was up and running.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is the process to move my used household goods and ...
When completing a Customs Form 6059B "Customs Declaration," for accompanying goods or and Form 3299 "Declaration For Free Entry of ...
Read more >
Press releases : Migration trends | U-Haul
Canada Migration Trends: Alberta is Top Growth Province of 2021 (1/05/2022); U-Haul Growth Index: Florida has 10 of Top 25 U.S. Growth Cities...
Read more >
Migrating Users to Amazon Cognito User Pools - AWS
You might have thought we were done with the one-at-a-time migration. For a robust migration, you also need to consider users who have...
Read more >
Migration Assistance Sample Clauses - Law Insider
Migration Assistance. Within sixty (60) days after the date hereof, the Parties shall jointly develop a detailed plan for (a) separating and conveying...
Read more >
The Godwit's 7000-Mile Journey - The New York Times
The godwit's epic flight — the longest nonstop migration of a land ... the migrations long ago and used the birds to assist...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found