-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Packager build error on Windows: "Unexpected identifier" or "Unable to resolve a Haste module" #20353
Copy link
Copy link
Closed
Labels
Impact: RegressionDescribes a behavior that used to work on a prior release, but stopped working recently.Describes a behavior that used to work on a prior release, but stopped working recently.Platform: WindowsBuilding on Windows.Building on Windows.Ran CommandsOne of our bots successfully processed a command.One of our bots successfully processed a command.Resolution: FixedA PR that fixes this issue has been merged.A PR that fixes this issue has been merged.Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.Type: DiscussionLong running discussion.Long running discussion.
Metadata
Metadata
Assignees
Labels
Impact: RegressionDescribes a behavior that used to work on a prior release, but stopped working recently.Describes a behavior that used to work on a prior release, but stopped working recently.Platform: WindowsBuilding on Windows.Building on Windows.Ran CommandsOne of our bots successfully processed a command.One of our bots successfully processed a command.Resolution: FixedA PR that fixes this issue has been merged.A PR that fixes this issue has been merged.Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.Type: DiscussionLong running discussion.Long running discussion.
Type
Fields
Give feedbackNo fields configured for issues without a type.
I first discover this issue in June 16 (react/metro#181), which is a month ago, but got less attention on this in beggining. Then react native 0.56 released, which totally expose the problem, which bothering windows user even for now (see #20346 and react/metro#200).
Here is what I want to have been achieve
Fix debug RNTester on windows (merged in 2018-08-04)
Related pr: #19974.
The main purpose is refactor bash script to nodejs script, so it can be cross platform. I remove some types on file simplily because they not flow-typed file. @pvdz Please merge this asap. For without it, debugging RNTester will be an unusable on windows
Fix RNTester in release mode on windows (merged on 18/07/31)
Related pr: #20293.
This is a windows specific bug. And this bothered me very long time , I searched really really a lot to fix it.
Without it you will have build problem like this:
I think it's clean fix and I have appveyor log to prove my fix work, you can see detail in that pr. So I hope @hramos or anyone with merge permission can review my pr.
Fix general problem like
Problem like
SyntaxError: Unexpected identifieror 'Unable to resolve a haste module' or 'Unable to resolve a module' has been fixed in master branch by the help of metro team. But when I communicate with @kelset , branch 0.57 still not working. But I believe we can fix that soon.And Many developers works on windows instead of macOS. And this has been take too long to fix. And there are many windows developer still suffer from this issue in today.
In the end, I love react native. But dear react native official members, don't make us wait too long.